AP_Landing: use get_distance instead of location_diff

This commit is contained in:
Pierre Kancir 2019-04-08 15:16:13 +02:00 committed by Tom Pittenger
parent 6397cb0c0e
commit 0b50f32c32

View File

@ -632,7 +632,7 @@ float AP_Landing_Deepstall::update_steering()
(double)crosstrack_error,
(double)error,
(double)degrees(yaw_rate),
(double)location_diff(current_loc, landing_point).length());
(double)current_loc.get_distance(landing_point));
#endif // DEBUG_PRINTS
return ds_PID.get_pid(error);