Showing 2 changed files with 5 additions and 5 deletions
+3 -3
Nasal/afcs.nas
... ...
@@ -36,6 +36,8 @@ var APClass = {
36 36
         }
37 37
         foreach (var ap; [ 'AP', 'YD' ])
38 38
             flightdeck.PFD.display.screenElements[ap ~ '-Status-text']
39
+                .setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX)
40
+                .setColorFill(flightdeck.PFD.display.colors.black)
39 41
                 .setText(ap);
40 42
 
41 43
         ap_annun = nil;
... ...
@@ -53,9 +55,7 @@ var APClass = {
53 55
     softkey: func (side, row, a) {
54 56
         if (a)
55 57
             return;
56
-        var _system = me.systems[me.system];
57
-        var _side = _system[side];
58
-        _side[row]();
58
+        call(me.systems[me.system][side][row], [], autopilot.parents[0].systems[me.system]);
59 59
     },
60 60
     systems : {
61 61
         # L: AP FD  NAV ALT VS FLC
+2 -2
zkv1000.nas
... ...
@@ -131,7 +131,7 @@ var init_props = func {
131 131
     afcs = zkv.getNode('afcs',1);
132 132
     afcs.getNode('fd-bars-visible',1).setBoolValue(0);
133 133
     afcs.getNode('alt-bug-visible',1).setBoolValue(0);
134
-    afcs.getNode('heading-bug-deg',1).setDoubleValue(getprop('/orientation/heading-magnetic-deg'));
134
+    afcs.getNode('heading-bug-deg',1).setDoubleValue(int(getprop('/orientation/heading-magnetic-deg')));
135 135
     afcs.getNode('target-pitch-deg',1).setDoubleValue(0.0);
136 136
     afcs.getNode('selected-alt-ft',1).setIntValue(2000);
137 137
     afcs.getNode('selected-alt-ft-diff',1).setDoubleValue(0.0);
... ...
@@ -175,7 +175,7 @@ var init_props = func {
175 175
     props.globals.getNode('/instrumentation/transponder/id-code',1).setIntValue(1200);
176 176
     props.globals.getNode('/instrumentation/transponder/serviceable',1).setBoolValue(1);
177 177
     props.globals.getNode('/autopilot/settings/heading-bug-deg', 1).alias(afcs.getNode('heading-bug-deg').getPath());
178
-    props.globals.getNode('/autopilot/settings/target-altitude-ft',1).setDoubleValue(0.0);
178
+    props.globals.getNode('/autopilot/settings/target-alt-ft',1).alias(afcs.getNode('selected-alt-ft').getPath());
179 179
     props.globals.getNode('/autopilot/settings/target-speed-kt',1).setDoubleValue(0.0);
180 180
     props.globals.getNode('/autopilot/settings/vertical-speed-fpm',1).setDoubleValue(0.0);
181 181
     props.globals.getNode('/autopilot/internal/target-pitch-deg',1).setDoubleValue(0.0);