ArduPlane: inav use _xy()

This commit is contained in:
Josh Henderson 2021-09-11 04:08:25 -04:00 committed by Andrew Tridgell
parent 6b871fba55
commit c6dd39773d
1 changed files with 1 additions and 1 deletions

View File

@ -2331,7 +2331,7 @@ void QuadPlane::vtol_position_controller(void)
// reset position controller xy target to current position
// because we only want velocity control (no position control)
const Vector3f& curr_pos = inertial_nav.get_position();
const Vector2f& curr_pos = inertial_nav.get_position_xy();
pos_control->set_pos_target_xy_cm(curr_pos.x, curr_pos.y);
pos_control->set_accel_desired_xy_cmss(Vector2f());