mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_GPS: use get_distance_NED
This commit is contained in:
parent
2adbfed70a
commit
36f12e9818
@ -1010,7 +1010,7 @@ bool AP_GPS::all_consistent(float &distance) const
|
||||
}
|
||||
|
||||
// calculate distance
|
||||
distance = location_3d_diff_NED(state[0].location, state[1].location).length();
|
||||
distance = state[0].location.get_distance_NED(state[1].location).length();
|
||||
// success if distance is within 50m
|
||||
return (distance < 50);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user