diff --git a/locales/en/messages.json b/locales/en/messages.json index cfe9785500..2a6fef080c 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -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" diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 699e49a494..e26d848700 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -84,6 +84,7 @@ SYM.loadSymbols = function () { SYM.ROLL = 0x14; SYM.KM = 0x7d; SYM.MILES = 0x7e; + SYM.ANGLE_OF_ATTACK = 0x40; }; FONT.initData = function () { @@ -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)) { @@ -2024,6 +2034,7 @@ OSD.chooseFields = function () { F.CUSTOM_MSG1, F.CUSTOM_MSG2, F.CUSTOM_MSG3, + F.ANGLE_OF_ATTACK, ]); } // Choose statistic fields