Fix missing fixed wing throttle control.

This commit is contained in:
Dominic Clifton 2015-07-08 13:59:00 +01:00
parent 763c75873e
commit 7e12711763
1 changed files with 9 additions and 0 deletions

View File

@ -797,6 +797,15 @@ void mixTable(void)
}
#if !defined(USE_QUAD_MIXER_ONLY) || defined(USE_SERVOS)
if (STATE(FIXED_WING)) {
if (!ARMING_FLAG(ARMED)) {
motor[0] = escAndServoConfig->mincommand; // Kill throttle when disarmed
} else {
motor[0] = rcCommand[THROTTLE];
}
}
// airplane / servo mixes
switch (currentMixerMode) {
case MIXER_CUSTOM_AIRPLANE: