File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,7 @@ def output_ui_variables():
323
323
ui_friendly_dictionary ["LATITUDE" ] = aq .get ("PLANE_LATITUDE" )
324
324
ui_friendly_dictionary ["LONGITUDE" ] = aq .get ("PLANE_LONGITUDE" )
325
325
ui_friendly_dictionary ["MAGNETIC_COMPASS" ] = round (aq .get ("MAGNETIC_COMPASS" ))
326
+ ui_friendly_dictionary ["MAGVAR" ] = round (aq .get ("MAGVAR" ))
326
327
ui_friendly_dictionary ["VERTICAL_SPEED" ] = round (aq .get ("VERTICAL_SPEED" ))
327
328
328
329
# Autopilot
Original file line number Diff line number Diff line change 15
15
aq = AircraftRequests (sm )
16
16
ae = AircraftEvents (sm )
17
17
18
+
19
+ mc = aq .find ("MAGNETIC_COMPASS" )
20
+ mv = aq .find ("MAGVAR" )
21
+ print (mc .get () + mv .get ())
22
+
23
+ sm .exit ()
24
+ quit ()
25
+
18
26
# Set pos arund space nedle in WA.
19
27
sm .set_pos (
20
28
_Altitude = 1000.0 ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function getSimulatorData() {
48
48
//Navigation
49
49
altitude = data . ALTITUDE ;
50
50
vertical_speed = data . VERTICAL_SPEED ;
51
- compass = data . MAGNETIC_COMPASS ;
51
+ compass = data . MAGNETIC_COMPASS + data . MAGVAR ;
52
52
airspeed = data . AIRSPEED_INDICATE ;
53
53
latitude = data . LATITUDE ;
54
54
longitude = data . LONGITUDE ;
You can’t perform that action at this time.
0 commit comments