Josh Henderson
6c3612b51d
AP_Common: enable SITL unit testing
...
apcommon
3 years ago
Peter Barker
d73ce0ed57
AP_Common: tests: stop overriding non-virtual method
...
set_origin is no longer virtual. These tests can be reinstated once we
have a single origin for the AHRS
4 years ago
Andrew Tridgell
68a33e996d
AP_Common: fixed invalid nmea test
4 years ago
Peter Barker
2bd8a45c58
AP_Common: rename for AHRS restructuring
4 years ago
Andrew Tridgell
416c0724d2
AP_Common: use double precision for more location functions when available
...
this makes the location functions more accurate at long distances when
EKF double enabled
4 years ago
Andrew Tridgell
3ded1e6c10
AP_Common: added ftype precision offset call
4 years ago
Peter Barker
fc2338612e
AP_Common: stop setting terrain pointer in test_location
...
Also enable/disable as required for testing
4 years ago
Andrew Tridgell
56d9134e38
AP_Common: adjust test_location values
...
for adjusted longitude scale accuracy
4 years ago
Andrew Tridgell
a924f66f70
AP_Common: fixed comment
4 years ago
Andrew Tridgell
6a3b12956a
AP_Common: make longitude_scale() a static
...
this changes the use of longitude_scale() to use the average latitude
instead of the lattitude at one end of the line when calculating
positions and distances. It means we obey the basic geometry rule
that:
pos1 + offs = pos2
pos2 - offs == pos1
4 years ago
Andrew Tridgell
b8e42be5d1
AP_Common: added double methods for SITL
4 years ago
Peter Barker
f69e2a49f6
AP_Common: add test for longitude wrapping
4 years ago
Pierre Kancir
983e402804
AP_Common: add more unitttests
4 years ago
Pierre Kancir
614ebff842
AP_Common: add more unit tests
4 years ago
Peter Barker
9d4bdbf3d5
AP_Common: add sanity check into bitmask get/set
...
Also return false if we are asked about an out-of-bounds bit
6 years ago
Peter Barker
e51a0a7a52
AP_Common: make Bitmask a template on number of bits
6 years ago
Peter Barker
942555ceb8
AP_Common: add tests for Bitmask
6 years ago