AC_Loiter: fix references to position error

This commit is contained in:
Leonard Hall 2021-01-19 15:56:02 +09:00 committed by Randy Mackay
parent d0ab74e496
commit 64ae08a925

View File

@ -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(); }