Browse Source

AP_Landing: use get_distance instead of location_diff

master
Pierre Kancir 6 years ago committed by Tom Pittenger
parent
commit
0b50f32c32
  1. 2
      libraries/AP_Landing/AP_Landing_Deepstall.cpp

2
libraries/AP_Landing/AP_Landing_Deepstall.cpp

@ -632,7 +632,7 @@ float AP_Landing_Deepstall::update_steering() @@ -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);

Loading…
Cancel
Save