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 57015701 "message" : " Custom message 4 from external device" ,
57025702 "description" : " Description of the custom message 4 element of the OSD"
57035703 },
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+ },
57045712 "osdTextElementOnTime" : {
57055713 "message" : " On time" ,
57065714 "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