... | ... |
@@ -78,8 +78,9 @@ var mapClass = { |
78 | 78 |
} |
79 | 79 |
} |
80 | 80 |
elsif (me.device.data.orientation.text == 'DTK UP') { |
81 |
- me.device.data.orientation.map = 0; |
|
82 |
- me.device.data.orientation.airplane = 0; |
|
81 |
+ var desired = getprop('/instrumentation/gps/wp/wp[1]/desired-course-deg'); |
|
82 |
+ me.device.data.orientation.map = -desired; |
|
83 |
+ me.device.data.orientation.airplane = data.hdg; |
|
83 | 84 |
} |
84 | 85 |
elsif (me.device.data.orientation.text == 'HDG UP') { |
85 | 86 |
me.device.data.orientation.map = -data.hdg; |