mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Add OSD_WARNING_ESC_FAIL
This commit is contained in:
parent
dede17f1dd
commit
37a5cd0081
2 changed files with 13 additions and 0 deletions
|
@ -3312,6 +3312,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."
|
||||||
|
|
|
@ -1007,7 +1007,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" },
|
||||||
|
@ -1175,6 +1180,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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue