mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 00:35:34 +03:00
Bug fix for bloced arming
This commit is contained in:
parent
7c185db060
commit
a604138fe3
1 changed files with 5 additions and 6 deletions
|
@ -195,14 +195,13 @@ void processRcStickPositions(rxConfig_t *rxConfig, throttleStatus_e throttleStat
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUsingSticksToArm) {
|
if (isUsingSticksToArm) {
|
||||||
|
// Disarm on throttle down + yaw
|
||||||
|
if (rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_CE) {
|
||||||
// Dont disarm if fixedwing and motorstop
|
// Dont disarm if fixedwing and motorstop
|
||||||
if (STATE(FIXED_WING) && feature(FEATURE_MOTOR_STOP) && fixed_wing_auto_arm) {
|
if (STATE(FIXED_WING) && feature(FEATURE_MOTOR_STOP) && fixed_wing_auto_arm) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (ARMING_FLAG(ARMED)) {
|
||||||
// Disarm on throttle down + yaw
|
|
||||||
if (rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_CE) {
|
|
||||||
if (ARMING_FLAG(ARMED)) {
|
|
||||||
mwDisarm();
|
mwDisarm();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue