Browse Source

Bug fix for bloced arming

master
Konstantin (DigitalEntity) Sharlaimov 8 years ago
parent
commit
a604138fe3
  1. 11
      src/main/fc/rc_controls.c

11
src/main/fc/rc_controls.c

@ -195,14 +195,13 @@ void processRcStickPositions(rxConfig_t *rxConfig, throttleStatus_e throttleStat
} }
if (isUsingSticksToArm) { if (isUsingSticksToArm) {
// Dont disarm if fixedwing and motorstop
if (STATE(FIXED_WING) && feature(FEATURE_MOTOR_STOP) && fixed_wing_auto_arm) {
return;
}
// Disarm on throttle down + yaw // Disarm on throttle down + yaw
if (rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_CE) { if (rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_CE) {
if (ARMING_FLAG(ARMED)) {
// Dont disarm if fixedwing and motorstop
if (STATE(FIXED_WING) && feature(FEATURE_MOTOR_STOP) && fixed_wing_auto_arm) {
return;
}
else if (ARMING_FLAG(ARMED)) {
mwDisarm(); mwDisarm();
} }
else { else {

Loading…
Cancel
Save