1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

New crash flag in 4.1 jostles the disarm flags

This commit is contained in:
root 2019-05-09 21:02:41 +00:00
parent bf9c4fece7
commit 7a815853f1
2 changed files with 7 additions and 0 deletions

View file

@ -789,6 +789,10 @@
"message": "Runway Takeoff Prevention has been triggered",
"description": "Description of the RUNAWAY_TAKEOFF arming disable flag"
},
"initialSetupArmingDisableFlagsTooltipCRASH": {
"message": "Disarmed via crash detection",
"description": "Description of the CRASH arming disable flag"
},
"initialSetupArmingDisableFlagsTooltipTHROTTLE": {
"message": "Throttle channel is too high",
"description": "Description of the THROTTLE arming disable flag"

View file

@ -233,6 +233,9 @@ TABS.setup.initialize = function (callback) {
disarmFlagElements.splice(disarmFlagElements.indexOf('OSD_MENU'), 1);
disarmFlagElements = disarmFlagElements.concat(['RESC']);
}
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
disarmFlagElements.splice(disarmFlagElements.indexOf('THROTTLE'), 0, 'CRASH');
}
// Always the latest element
disarmFlagElements = disarmFlagElements.concat(['ARM_SWITCH']);