mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AC_Loiter: fix references to position error
This commit is contained in:
parent
d0ab74e496
commit
64ae08a925
@ -39,7 +39,7 @@ public:
|
||||
void get_stopping_point_xy(Vector3f& stopping_point) const;
|
||||
|
||||
/// get horizontal distance to loiter target in cm
|
||||
float get_distance_to_target() const { return _pos_control.get_distance_to_target(); }
|
||||
float get_distance_to_target() const { return _pos_control.get_pos_error_xy(); }
|
||||
|
||||
/// get bearing to target in centi-degrees
|
||||
int32_t get_bearing_to_target() const { return _pos_control.get_bearing_to_target(); }
|
||||
|
Loading…
Reference in New Issue
Block a user