Add osd rssi dbm (#1491)

Add osd rssi dbm
10.7.0-preview
Michael Keller 2019-06-15 17:09:04 +12:00 committed by GitHub
commit dfccd03659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 2 deletions

View File

@ -4210,6 +4210,14 @@
"osdDescElementOsdProfileName": {
"message": "OSD profile name as set in the \"osd_profile_1_name\", \"osd_profile_2_name\" and \"osd_profile_3_name\" CLI variables"
},
"osdTextElementRssiDbmValue": {
"message": "RSSI dBm value",
"description": "One of the elements of the OSD"
},
"osdDescElementRssiDbmValue": {
"message": "Value in dBm of the RSSI signal if available"
},
"osdTextElementUnknown": {
"message": "Unknown $1",
"description": "One of the elements of the OSD"
@ -4371,6 +4379,9 @@
"osdWarningLinkQuality": {
"message": "Warns when Link Quality is below alarm setting"
},
"osdWarningRssiDbm": {
"message": "Warns when RSSI dBm value is below alarm setting"
},
"osdSectionHelpElements": {
"message": "Enable or disable OSD elements."

View File

@ -1077,6 +1077,15 @@ OSD.constants = {
positionable: true,
preview: 'OSD_1'
},
RSSI_DBM_VALUE: {
name: 'OSD_PROFILE_NAME',
text: 'osdTextElementRssiDbmValue',
desc: 'osdDescElementRssiDbmValue',
default_position: -1,
draw_order: 395,
positionable: true,
preview: FONT.symbol(SYM.RSSI) + '-130'
},
},
UNKNOWN_DISPLAY_FIELD: {
name: 'UNKNOWN',
@ -1249,6 +1258,11 @@ OSD.constants = {
name: 'LINK_QUALITY',
desc: 'osdWarningLinkQuality'
},
RSSI_DBM: {
name: 'RSSI_DBM',
desc: 'osdWarningRssiDbm'
},
},
FONT_TYPES: [
{ file: "default", name: "Default" },
@ -1393,7 +1407,8 @@ OSD.chooseFields = function () {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.RATE_PROFILE_NAME,
F.PID_PROFILE_NAME,
F.OSD_PROFILE_NAME
F.OSD_PROFILE_NAME,
F.RSSI_DBM_VALUE
]);
}
}
@ -1533,7 +1548,8 @@ OSD.chooseFields = function () {
]);
OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([
F.RSSI,
F.LINK_QUALITY
F.LINK_QUALITY,
F.RSSI_DBM,
]);
}
};