Add OSD profile names

10.7.0-preview
Pieter Kruger 2019-05-22 19:53:09 +10:00
parent a5b5c7d737
commit 4e4f9e98c3
2 changed files with 12 additions and 0 deletions

View File

@ -3893,6 +3893,9 @@
"osdDescElementLogStatus": {
"message": "Blackbox number and warnings"
},
"osdDescElementOsdProfileName": {
"message": "OSD profile name as set in the \"osd_profile_1_name\", \"osd_profile_2_name\" and \"osd_profile_3_name\" CLI variables"
},
"osdDescStatMaxSpeed": {
"message": "Maximum recorded speed"

View File

@ -988,6 +988,14 @@ OSD.constants = {
positionable: true,
preview: 'PID_1'
},
OSD_PROFILE_NAME: {
name: 'OSD_PROFILE_NAME',
desc: 'osdDescElementOsdProfileName',
default_position: -1,
draw_order: 440,
positionable: true,
preview: 'OSD_1'
},
},
UNKNOWN_DISPLAY_FIELD: {
name: 'UNKNOWN_',
@ -1303,6 +1311,7 @@ OSD.chooseFields = function () {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.RATE_PROFILE_NAME,
F.PID_PROFILE_NAME,
F.OSD_PROFILE_NAME
]);
}
}