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

Merge pull request #1384 from ianrmurphy/add-rssi-lq-osd-warnings

Added support for RSSI & Link Quality warning settings
This commit is contained in:
Michael Keller 2019-04-17 05:49:36 +12:00 committed by GitHub
commit c68ec0b67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -3964,6 +3964,12 @@
"osdWarningGpsRescueDisabled": {
"message": "Warns when GPS Rescue is disabled"
},
"osdWarningRSSI": {
"message": "Warns when RSSI is below alarm setting"
},
"osdWarningLinkQuality": {
"message": "Warns when Link Quality is below alarm setting"
},
"osdSectionHelpElements": {
"message": "Enable or disable OSD elements."

View file

@ -1107,8 +1107,15 @@ OSD.constants = {
GPS_RESCUE_DISABLED: {
name: 'GPS_RESCUE_DISABLED',
desc: 'osdWarningGpsRescueDisabled'
}
},
RSSI: {
name: 'RSSI',
desc: 'osdWarningRSSI'
},
LINK_QUALITY: {
name: 'LINK_QUALITY',
desc: 'osdWarningLinkQuality'
},
},
FONT_TYPES: [
{ file: "default", name: "Default" },
@ -1365,6 +1372,12 @@ OSD.chooseFields = function () {
F.GPS_RESCUE_DISABLED
]);
}
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([
F.RSSI,
F.LINK_QUALITY
]);
}
};
OSD.updateDisplaySize = function () {