mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -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;
|
void get_stopping_point_xy(Vector3f& stopping_point) const;
|
||||||
|
|
||||||
/// get horizontal distance to loiter target in cm
|
/// 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
|
/// get bearing to target in centi-degrees
|
||||||
int32_t get_bearing_to_target() const { return _pos_control.get_bearing_to_target(); }
|
int32_t get_bearing_to_target() const { return _pos_control.get_bearing_to_target(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user