Tools: autotest: correct get_distance_int

This commit is contained in:
Peter Barker 2019-10-04 21:36:37 +10:00 committed by Andrew Tridgell
parent 95c18806cd
commit 1609b4ccb8

View File

@ -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