... | ... |
@@ -64,6 +64,7 @@ var data = { # set of data common to all devices |
64 | 64 |
ias : 0, |
65 | 65 |
alt : 0, |
66 | 66 |
hdg : 0, |
67 |
+ trk : 0, |
|
67 | 68 |
wow : 1, |
68 | 69 |
lat : 0, |
69 | 70 |
lon : 0, |
... | ... |
@@ -96,6 +97,7 @@ var data = { # set of data common to all devices |
96 | 97 |
data.ias = getprop('/velocities/airspeed-kt') * units.speed.from_kt; |
97 | 98 |
data.alt = getprop('/instrumentation/altimeter/indicated-altitude-ft') * units.altitude.from_ft; |
98 | 99 |
data.hdg = getprop('/orientation/heading-deg'); |
100 |
+ data.trk = data.wow ? data.hdg : getprop('/orientation/track-deg'); |
|
99 | 101 |
data.aoa = getprop('/orientation/alpha-deg'); |
100 | 102 |
} |
101 | 103 |
), |