Andrew Tridgell
45c2452675
AP_Common: improved accuracy of get_bearing()
...
make base function ftype, then convert to int32_t for get_bearing_to()
2022-03-12 08:01:18 +09:00
Peter Barker
8cdda7dec2
AP_Common: stop passing mission in Terrain constructor
...
Terrain can use the mission singleton
This means Copter can have terrain while compiling mission out
2022-02-08 11:20:20 +11:00
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
2021-08-05 10:37:47 +10:00
Peter Barker
2bd8a45c58
AP_Common: rename for AHRS restructuring
2021-07-21 21:01:39 +10:00
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
2021-07-14 17:34:40 +10:00
Andrew Tridgell
3ded1e6c10
AP_Common: added ftype precision offset call
2021-07-14 17:34:40 +10:00
Peter Barker
fc2338612e
AP_Common: stop setting terrain pointer in test_location
...
Also enable/disable as required for testing
2021-07-12 17:34:44 +10:00
Andrew Tridgell
56d9134e38
AP_Common: adjust test_location values
...
for adjusted longitude scale accuracy
2021-07-10 07:20:41 +10:00
Andrew Tridgell
a924f66f70
AP_Common: fixed comment
2021-07-10 07:20:41 +10:00
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
2021-07-10 07:20:41 +10:00
Andrew Tridgell
b8e42be5d1
AP_Common: added double methods for SITL
2021-07-10 07:20:41 +10:00
Peter Barker
f69e2a49f6
AP_Common: add test for longitude wrapping
2021-06-25 15:33:55 +10:00
Pierre Kancir
983e402804
AP_Common: add more unitttests
2021-06-21 21:16:29 +10:00
Pierre Kancir
614ebff842
AP_Common: add more unit tests
2021-06-18 16:03:51 +10:00