Plane: Add Q_FWD_THR_GAIN value arming check for tailsitters

This commit is contained in:
Paul Riseborough 2023-08-28 21:13:52 +10:00 committed by Andrew Tridgell
parent 04e5f6b5f6
commit 57cfe854b2

View File

@ -218,6 +218,11 @@ bool AP_Arming_Plane::quadplane_checks(bool display_failure)
ret = false;
}
if ((plane.quadplane.tailsitter.enable > 0) && is_positive(plane.quadplane.q_fwd_thr_gain)) {
check_failed(ARMING_CHECK_PARAMETERS, display_failure, "set Q_FWD_THR_GAIN to 0");
ret = false;
}
return ret;
}
#endif // HAL_QUADPLANE_ENABLED