Merge pull request #2427 from dkustec/osd-tx-uplink-power

OSD Tx Uplink Power support
10.8-maintenance
J Blackman 2021-06-12 14:42:29 +10:00 committed by GitHub
commit f326092307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -5028,6 +5028,13 @@
"osdDescUpDownReference": { "osdDescUpDownReference": {
"message": "OSD Symbol to show when pitch is approaching vertical (90 deg, U) and D for nose down (-90 deg, D)" "message": "OSD Symbol to show when pitch is approaching vertical (90 deg, U) and D for nose down (-90 deg, D)"
}, },
"osdTextElementTxUplinkPower": {
"message": "Tx uplink power",
"description": "One of the elements of the OSD"
},
"osdDescTxUplinkPower": {
"message": "Shows a value of the Tx power (mW or W). Useful when <i>Dynamic Power</i> is enabled for supporting radios"
},
"osdTextElementUnknown": { "osdTextElementUnknown": {
"message": "Unknown $1", "message": "Unknown $1",
"description": "One of the elements of the OSD" "description": "One of the elements of the OSD"

View File

@ -1191,6 +1191,15 @@ OSD.loadDisplayFields = function() {
positionable: true, positionable: true,
preview: 'U', preview: 'U',
}, },
OSD_TX_UPLINK_POWER: {
name: 'OSD_TX_UPLINK_POWER',
text: 'osdTextElementTxUplinkPower',
desc: 'osdDescTxUplinkPower',
defaultPosition: -1,
draw_order: 470,
positionable: true,
preview: `${FONT.symbol(SYM.RSSI)}250MW`,
},
}; };
}; };
@ -1613,6 +1622,7 @@ OSD.chooseFields = function() {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.TOTAL_FLIGHTS, F.TOTAL_FLIGHTS,
F.OSD_UP_DOWN_REFERENCE, F.OSD_UP_DOWN_REFERENCE,
F.OSD_TX_UPLINK_POWER,
]); ]);
} }
} }