Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -5753,6 +5753,14 @@
"message": "Custom message 4 from external device",
"description": "Description of the custom message 4 element of the OSD"
},
"osdTextElementAngleOfAttack": {
"message": "Angle of attack",
"description": "One of the elements of the OSD"
},
"osdDescElementAngleOfAttack": {
"message": "Angle of attack",
"description": "Description of the angle of attack element of the OSD"
},
"osdTextElementOnTime": {
"message": "On time",
"description": "One of the elements of the OSD"
Expand Down
11 changes: 11 additions & 0 deletions src/js/tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ SYM.loadSymbols = function () {
SYM.ROLL = 0x14;
SYM.KM = 0x7d;
SYM.MILES = 0x7e;
SYM.ANGLE_OF_ATTACK = 0x40;
};

FONT.initData = function () {
Expand Down Expand Up @@ -1578,6 +1579,15 @@ OSD.loadDisplayFields = function () {
positionable: true,
preview: "CUSTOM MSG4",
},
ANGLE_OF_ATTACK: {
name: "ANGLE_OF_ATTACK",
text: "osdTextElementAngleOfAttack",
desc: "osdDescElementAngleOfAttack",
defaultPosition: -1,
draw_order: 610,
positionable: true,
preview: `${FONT.symbol(SYM.ANGLE_OF_ATTACK)}-00.0`,
},
};

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
Expand Down Expand Up @@ -2024,6 +2034,7 @@ OSD.chooseFields = function () {
F.CUSTOM_MSG1,
F.CUSTOM_MSG2,
F.CUSTOM_MSG3,
F.ANGLE_OF_ATTACK,
]);
}
// Choose statistic fields
Expand Down
Loading