File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 56915691 "message" : " Custom message 4 from external device" ,
56925692 "description" : " Description of the custom message 4 element of the OSD"
56935693 },
5694+ "osdTextElementAngleOfAttack" : {
5695+ "message" : " Angle of attack" ,
5696+ "description" : " One of the elements of the OSD"
5697+ },
5698+ "osdDescElementAngleOfAttack" : {
5699+ "message" : " Angle of attack" ,
5700+ "description" : " Description of the angle of attack element of the OSD"
5701+ },
56945702 "osdTextElementOnTime" : {
56955703 "message" : " On time" ,
56965704 "description" : " One of the elements of the OSD"
Original file line number Diff line number Diff 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
8990FONT . 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
You can’t perform that action at this time.
0 commit comments