mirror of https://github.com/ArduPilot/ardupilot
Plane: correct the ability to disable the takeoff atititude checks
This commit is contained in:
parent
29a35baf48
commit
77067edd91
|
@ -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