mirror of https://github.com/ArduPilot/ardupilot
Plane: correct the ability to disable the takeoff atititude checks
This commit is contained in:
parent
929c46a647
commit
e7de1b9273
|
@ -57,7 +57,7 @@ bool Plane::auto_takeoff_check(void)
|
|||
bool do_takeoff_attitude_check = !(flight_option_enabled(FlightOptions::DISABLE_TOFF_ATTITUDE_CHK));
|
||||
#if HAL_QUADPLANE_ENABLED
|
||||
// disable attitude check on tailsitters
|
||||
do_takeoff_attitude_check = !quadplane.tailsitter.enabled();
|
||||
do_takeoff_attitude_check &= !quadplane.tailsitter.enabled();
|
||||
#endif
|
||||
|
||||
if (!takeoff_state.launchTimerStarted && !is_zero(g.takeoff_throttle_min_accel)) {
|
||||
|
|
Loading…
Reference in New Issue