From 36b83e8663861e3bc0e42dd5f897f4eb35ae79b0 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sat, 1 Jul 2017 14:52:02 -0400 Subject: [PATCH] A3XX: Fix MCDU2 Scratchpad --- Models/Instruments/MCDU2/SCRATCHPAD.xml | 2 +- Nasal/ADIRS.nas | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Models/Instruments/MCDU2/SCRATCHPAD.xml b/Models/Instruments/MCDU2/SCRATCHPAD.xml index cff0279b..1bfb1b7d 100644 --- a/Models/Instruments/MCDU2/SCRATCHPAD.xml +++ b/Models/Instruments/MCDU2/SCRATCHPAD.xml @@ -23,7 +23,7 @@ %s false BoeingCDU-Large.ttf - /MCDU[0]/scratchpad + /MCDU[1]/scratchpad true false false diff --git a/Nasal/ADIRS.nas b/Nasal/ADIRS.nas index c3f4d981..839fa03b 100644 --- a/Nasal/ADIRS.nas +++ b/Nasal/ADIRS.nas @@ -1,11 +1,10 @@ -# A320Family ADIRS system -# Jonathan Redpath -# Minor Modifications by Joshua Davidson - +# A3XX ADIRS system +# Jonathan Redpath and Joshua Davidson ##################### # 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 setprop("/systems/electrical/bus/dc1", 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[1]/align",0); setprop("/controls/adirs/ir[2]/align",0); - setprop("/controls/adirs/ir[0]/knob","0"); - setprop("/controls/adirs/ir[1]/knob","0"); - setprop("/controls/adirs/ir[2]/knob","0"); + setprop("/controls/adirs/ir[0]/knob", 0); + setprop("/controls/adirs/ir[1]/knob", 0); + setprop("/controls/adirs/ir[2]/knob", 0); setprop("/controls/adirs/ir[0]/fault",0); setprop("/controls/adirs/ir[1]/fault",0); setprop("/controls/adirs/ir[2]/fault",0);