mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Added OSD Up/Down reference element
Added control for OSD up/down reference to OSD tab.
This commit is contained in:
parent
d5d0146af7
commit
73aceb6a37
2 changed files with 23 additions and 1 deletions
|
@ -4965,7 +4965,13 @@
|
||||||
"osdDescTotalFlights": {
|
"osdDescTotalFlights": {
|
||||||
"message": "Approximate total number of flights"
|
"message": "Approximate total number of flights"
|
||||||
},
|
},
|
||||||
|
"osdTextElementUpDownReference": {
|
||||||
|
"message": "Up (Pitch 90 deg)/Down (Pitch -90 deg) Reference",
|
||||||
|
"description": "OSD Symbol to show when pitch is approaching vertical (90 deg, U) and D for nose down (-90 deg, D)"
|
||||||
|
},
|
||||||
|
"osdDescUpDownReference": {
|
||||||
|
"message": "OSD Symbol to show when pitch is approaching vertical (90 deg, U) and D for nose down (-90 deg, D)"
|
||||||
|
},
|
||||||
"osdTextElementUnknown": {
|
"osdTextElementUnknown": {
|
||||||
"message": "Unknown $1",
|
"message": "Unknown $1",
|
||||||
"description": "One of the elements of the OSD"
|
"description": "One of the elements of the OSD"
|
||||||
|
|
|
@ -1181,6 +1181,21 @@ OSD.loadDisplayFields = function() {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: "#9876",
|
preview: "#9876",
|
||||||
},
|
},
|
||||||
|
UP_DOWN_REFERENCE: {
|
||||||
|
name: 'UP_DOWN_REFERENCE',
|
||||||
|
text: 'osdTextElementUpDownReference',
|
||||||
|
desc: 'osdDescUpDownReference',
|
||||||
|
defaultPosition() {
|
||||||
|
let position = 238;
|
||||||
|
if (OSD.constants.VIDEO_TYPES[OSD.data.video_system] !== 'NTSC') {
|
||||||
|
position += FONT.constants.SIZES.LINE;
|
||||||
|
}
|
||||||
|
return position;
|
||||||
|
},
|
||||||
|
draw_order: 465,
|
||||||
|
positionable: true,
|
||||||
|
preview: 'U',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1602,6 +1617,7 @@ OSD.chooseFields = function() {
|
||||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
|
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||||
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.UP_DOWN_REFERENCE,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue