mirror of https://github.com/ArduPilot/ardupilot
Copter: airmode should mean airmode. only idle on landing when in airmode
This commit is contained in:
parent
ecfdbaa01a
commit
2d4c34f644
|
@ -17,8 +17,8 @@ void ModeAcro::run()
|
|||
if (!motors->armed()) {
|
||||
// Motors should be Stopped
|
||||
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::SHUT_DOWN);
|
||||
} else if (copter.ap.throttle_zero) {
|
||||
// Attempting to Land
|
||||
} else if (copter.ap.throttle_zero && copter.air_mode != AirMode::AIRMODE_ENABLED) {
|
||||
// Attempting to Land, if airmode is enabled only an actual landing will spool down the motors
|
||||
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::GROUND_IDLE);
|
||||
} else {
|
||||
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED);
|
||||
|
|
Loading…
Reference in New Issue