Skip to content

Commit

Permalink
Add RSSI dBm value to the OSD
Browse files Browse the repository at this point in the history
  • Loading branch information
McGiverGim committed Jun 13, 2019
1 parent ac798c9 commit ce9eb57
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions locales/en/messages.json
Expand Up @@ -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"
Expand Down
12 changes: 11 additions & 1 deletion src/js/tabs/osd.js
Expand Up @@ -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',
Expand Down Expand Up @@ -1393,7 +1402,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
]);
}
}
Expand Down

0 comments on commit ce9eb57

Please sign in to comment.