Skip to content

Commit 74e8ae8

Browse files
committed
Add OSD support for angle of attack
1 parent f15214a commit 74e8ae8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

locales/en/messages.json

+8
Original file line numberDiff line numberDiff line change
@@ -5728,6 +5728,14 @@
57285728
"message": "Custom message 4 from external device",
57295729
"description": "Description of the custom message 4 element of the OSD"
57305730
},
5731+
"osdTextElementAngleOfAttack": {
5732+
"message": "Angle of attack",
5733+
"description": "One of the elements of the OSD"
5734+
},
5735+
"osdDescElementAngleOfAttack": {
5736+
"message": "Angle of attack",
5737+
"description": "Description of the angle of attack element of the OSD"
5738+
},
57315739
"osdTextElementOnTime": {
57325740
"message": "On time",
57335741
"description": "One of the elements of the OSD"

src/js/tabs/osd.js

+11
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ SYM.loadSymbols = function () {
8484
SYM.ROLL = 0x14;
8585
SYM.KM = 0x7d;
8686
SYM.MILES = 0x7e;
87+
SYM.ANGLE_OF_ATTACK = 0x40;
8788
};
8889

8990
FONT.initData = function () {
@@ -1575,6 +1576,15 @@ OSD.loadDisplayFields = function () {
15751576
positionable: true,
15761577
preview: "CUSTOM MSG4",
15771578
},
1579+
ANGLE_OF_ATTACK: {
1580+
name: "ANGLE_OF_ATTACK",
1581+
text: "osdTextElementAngleOfAttack",
1582+
desc: "osdDescElementAngleOfAttack",
1583+
defaultPosition: -1,
1584+
draw_order: 610,
1585+
positionable: true,
1586+
preview: `${FONT.symbol(SYM.ANGLE_OF_ATTACK)}-00.0`,
1587+
},
15781588
};
15791589

15801590
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47) && have_sensor(FC.CONFIG.activeSensors, "gps")) {
@@ -2015,6 +2025,7 @@ OSD.chooseFields = function () {
20152025
F.CUSTOM_MSG1,
20162026
F.CUSTOM_MSG2,
20172027
F.CUSTOM_MSG3,
2028+
F.ANGLE_OF_ATTACK,
20182029
]);
20192030
}
20202031
// Choose statistic fields

0 commit comments

Comments
 (0)