Revert "Plane: cope with Q pitch limit larger than fixed wing limit"

This reverts commit 74da3c74ac.
This commit is contained in:
Peter Hall 2021-06-05 23:41:52 +01:00 committed by Andrew Tridgell
parent 4df09360ab
commit 85743be4f3
1 changed files with 1 additions and 4 deletions

View File

@ -278,10 +278,7 @@ bool QuadPlane::tailsitter_transition_vtol_complete(void) const
return true;
}
}
// limit completion angle to just below fixed wing pitch limit
const float margin_deg = 3;
const float trans_angle = MIN(get_tailsitter_transition_angle_vtol(),
plane.aparm.pitch_limit_max_cd*0.01-margin_deg);
const float trans_angle = get_tailsitter_transition_angle_vtol();
if (labs(plane.ahrs.pitch_sensor) > trans_angle*100) {
gcs().send_text(MAV_SEVERITY_INFO, "Transition VTOL done");
return true;