diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index 21a9c3c5cd..5df5c23667 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -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());