File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 5701
5701
"message" : " Custom message 4 from external device" ,
5702
5702
"description" : " Description of the custom message 4 element of the OSD"
5703
5703
},
5704
+ "osdTextElementAngleOfAttack" : {
5705
+ "message" : " Angle of attack" ,
5706
+ "description" : " One of the elements of the OSD"
5707
+ },
5708
+ "osdDescElementAngleOfAttack" : {
5709
+ "message" : " Angle of attack" ,
5710
+ "description" : " Description of the angle of attack element of the OSD"
5711
+ },
5704
5712
"osdTextElementOnTime" : {
5705
5713
"message" : " On time" ,
5706
5714
"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 () {
84
84
SYM . ROLL = 0x14 ;
85
85
SYM . KM = 0x7d ;
86
86
SYM . MILES = 0x7e ;
87
+ SYM . ANGLE_OF_ATTACK = 0x40 ;
87
88
} ;
88
89
89
90
FONT . initData = function ( ) {
@@ -1575,6 +1576,15 @@ OSD.loadDisplayFields = function () {
1575
1576
positionable : true ,
1576
1577
preview : "CUSTOM MSG4" ,
1577
1578
} ,
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
+ } ,
1578
1588
} ;
1579
1589
1580
1590
if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_47 ) && have_sensor ( FC . CONFIG . activeSensors , "gps" ) ) {
@@ -2015,6 +2025,7 @@ OSD.chooseFields = function () {
2015
2025
F . CUSTOM_MSG1 ,
2016
2026
F . CUSTOM_MSG2 ,
2017
2027
F . CUSTOM_MSG3 ,
2028
+ F . ANGLE_OF_ATTACK ,
2018
2029
] ) ;
2019
2030
}
2020
2031
// Choose statistic fields
You can’t perform that action at this time.
0 commit comments