Commit Graph

8 Commits

Author SHA1 Message Date
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