mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Tools: autotest: correct get_distance_int
This commit is contained in:
parent
95c18806cd
commit
1609b4ccb8
@ -1463,6 +1463,10 @@ class AutoTest(ABC):
|
||||
loc1_lon = AutoTest.get_lon_attr(loc1)
|
||||
loc2_lon = AutoTest.get_lon_attr(loc2)
|
||||
|
||||
return AutoTest.get_distance_accurate(
|
||||
mavutil.location(loc1_lat*1e-7, loc1_lon*1e-7),
|
||||
mavutil.location(loc2_lat*1e-7, loc2_lon*1e-7))
|
||||
|
||||
dlat = loc2_lat - loc1_lat
|
||||
dlong = loc2_lon - loc1_lon
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user