mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 09:45:28 +03:00
Add RSSI dBm value to the OSD
This commit is contained in:
parent
ac798c9813
commit
ce9eb57b6c
2 changed files with 19 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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',
|
||||
|
@ -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
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue