1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Merge pull request #998 from McGiverGim/bf-add_osd_warning_esc_fail

Add OSD_WARNING_ESC_FAIL
This commit is contained in:
Michael Keller 2018-04-05 02:15:25 +12:00 committed by GitHub
commit d0ce8869a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -3317,6 +3317,9 @@
"osdWarningCrashFlipMode": { "osdWarningCrashFlipMode": {
"message": "Warns when flip over after crash mode is activated" "message": "Warns when flip over after crash mode is activated"
}, },
"osdWarningEscFail": {
"message": "Enumerates a list with the ESCs/motors that are failing (RPM or temperature are out of the configured threshold)"
},
"osdSectionHelpElements": { "osdSectionHelpElements": {
"message": "Enable or disable OSD elements." "message": "Enable or disable OSD elements."

View file

@ -1011,7 +1011,12 @@ OSD.constants = {
CRASH_FLIP_MODE: { CRASH_FLIP_MODE: {
name: 'CRASH_FLIP_MODE', name: 'CRASH_FLIP_MODE',
desc: 'osdWarningCrashFlipMode' desc: 'osdWarningCrashFlipMode'
},
ESC_FAIL: {
name: 'OSD_WARNING_ESC_FAIL',
desc: 'osdWarningEscFail'
} }
}, },
FONT_TYPES: [ FONT_TYPES: [
{ file: "default", name: "Default" }, { file: "default", name: "Default" },
@ -1184,6 +1189,11 @@ OSD.chooseFields = function () {
F.VISUAL_BEEPER, F.VISUAL_BEEPER,
F.CRASH_FLIP_MODE F.CRASH_FLIP_MODE
]; ];
if (semver.gte(CONFIG.apiVersion, "1.39.0")) {
OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([
F.ESC_FAIL
]);
}
}; };
OSD.updateDisplaySize = function() { OSD.updateDisplaySize = function() {