A3XX: Fix MCDU2 Scratchpad

This commit is contained in:
Joshua Davidson 2017-07-01 14:52:02 -04:00
parent 6f4be5ac51
commit 36b83e8663
2 changed files with 7 additions and 8 deletions

View file

@ -23,7 +23,7 @@
<format type="string">%s</format> <format type="string">%s</format>
<truncate type="bool">false</truncate> <truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font> <font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[0]/scratchpad</property> <property>/MCDU[1]/scratchpad</property>
<draw-text type="bool">true</draw-text> <draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment> <draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox> <draw-boundingbox type="bool">false</draw-boundingbox>

View file

@ -1,11 +1,10 @@
# A320Family ADIRS system # A3XX ADIRS system
# Jonathan Redpath # Jonathan Redpath and Joshua Davidson
# Minor Modifications by Joshua Davidson
##################### #####################
# Initializing Vars # # Initializing Vars #
##################### #####################
# Initializing these vars here to prevent nasal nil used in numeric context, since the electrical system doesn't until fdm init is done. -JD # Initializing these vars here to prevent nasal nil used in numeric context, since the electrical system doesn't until fdm init is done. -JD
setprop("/systems/electrical/bus/dc1", 0); setprop("/systems/electrical/bus/dc1", 0);
setprop("/systems/electrical/bus/dc2", 0); setprop("/systems/electrical/bus/dc2", 0);
@ -42,9 +41,9 @@ var ADIRSreset = func {
setprop("/controls/adirs/ir[0]/align",0); setprop("/controls/adirs/ir[0]/align",0);
setprop("/controls/adirs/ir[1]/align",0); setprop("/controls/adirs/ir[1]/align",0);
setprop("/controls/adirs/ir[2]/align",0); setprop("/controls/adirs/ir[2]/align",0);
setprop("/controls/adirs/ir[0]/knob","0"); setprop("/controls/adirs/ir[0]/knob", 0);
setprop("/controls/adirs/ir[1]/knob","0"); setprop("/controls/adirs/ir[1]/knob", 0);
setprop("/controls/adirs/ir[2]/knob","0"); setprop("/controls/adirs/ir[2]/knob", 0);
setprop("/controls/adirs/ir[0]/fault",0); setprop("/controls/adirs/ir[0]/fault",0);
setprop("/controls/adirs/ir[1]/fault",0); setprop("/controls/adirs/ir[1]/fault",0);
setprop("/controls/adirs/ir[2]/fault",0); setprop("/controls/adirs/ir[2]/fault",0);