Add support for ACC_CALIB arming disabled flag

10.7.0-preview
Bruce Luckcuck 2019-10-12 19:13:57 -04:00
parent 96f9eaf2ea
commit c6eaefd1b9
2 changed files with 7 additions and 0 deletions

View File

@ -922,6 +922,10 @@
"message": "Bitbanged DSHOT is not working properly and the motors can't be controlled. Likely caused by a timer conflict with other features enabled on the flight controller.",
"description": "Message that pops up to describe the DSHOT_BBANG arming disable flag"
},
"initialSetupArmingDisableFlagsTooltipACC_CALIB": {
"message": "The accelerometer has not been calibrated and features are enabled that rely on it. Calibrate the accelerometer.",
"description": "Message that pops up to describe the ACC_CALIB arming disable flag"
},
"initialSetupArmingDisableFlagsTooltipARM_SWITCH": {
"message": "One of the others disarm flags is active when arming",
"description": "Message that pops up to describe the ARM_SWITCH arming disable flag"

View File

@ -239,6 +239,9 @@ TABS.setup.initialize = function (callback) {
disarmFlagElements = disarmFlagElements.concat(['REBOOT_REQD',
'DSHOT_BBANG']);
}
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
disarmFlagElements = disarmFlagElements.concat(['ACC_CALIB']);
}
// Always the latest element
disarmFlagElements = disarmFlagElements.concat(['ARM_SWITCH']);