mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: correct the ability to disable the takeoff atititude checks
This commit is contained in:
parent
1e1d4a837d
commit
2045ef92da
@ -57,7 +57,7 @@ bool Plane::auto_takeoff_check(void)
|
|||||||
bool do_takeoff_attitude_check = !(flight_option_enabled(FlightOptions::DISABLE_TOFF_ATTITUDE_CHK));
|
bool do_takeoff_attitude_check = !(flight_option_enabled(FlightOptions::DISABLE_TOFF_ATTITUDE_CHK));
|
||||||
#if HAL_QUADPLANE_ENABLED
|
#if HAL_QUADPLANE_ENABLED
|
||||||
// disable attitude check on tailsitters
|
// disable attitude check on tailsitters
|
||||||
do_takeoff_attitude_check = !quadplane.tailsitter.enabled();
|
do_takeoff_attitude_check &= !quadplane.tailsitter.enabled();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!takeoff_state.launchTimerStarted && !is_zero(g.takeoff_throttle_min_accel)) {
|
if (!takeoff_state.launchTimerStarted && !is_zero(g.takeoff_throttle_min_accel)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user