... | ... |
@@ -816,9 +816,11 @@ var displayClass = { |
816 | 816 |
.setRotation(rot) |
817 | 817 |
.show(); |
818 | 818 |
me.screenElements['GPS-CTI'] |
819 |
- .setVisible(source == 'GPS'); |
|
819 |
+ .setVisible(getprop('/instrumentation/gps/wp/wp[1]/valid')) |
|
820 |
+ .setRotation(getprop('/instrumentation/gps/wp/wp[1]/course-deviation-deg') * D2R); |
|
820 | 821 |
me.screenElements['GPS-CTI-diamond'] |
821 |
- .setVisible(source == 'GPS'); |
|
822 |
+ .setVisible(getprop('/instrumentation/gps/wp/wp[1]/valid')) |
|
823 |
+ .setRotation(getprop('/instrumentation/gps/wp/wp[1]/course-deviation-deg') * D2R); |
|
822 | 824 |
foreach (var s; ['GPS', 'NAV1', 'NAV2']) { |
823 | 825 |
me.screenElements[s ~ '-pointer'] |
824 | 826 |
.setRotation(rot) |