# A320 Property Tree Setup # Copyright (c) 2019 Joshua Davidson (Octal450) # Modified by Jonathan Redpath for A320 # Nodes organized like property tree, except when lots of identical (example: Gear wow), where vectors are used to make it easier # Anything that says Temp is set by another file to avoid multiple getValue calls # Usage Example: pts.Class.SubClass.node.getValue() var Controls = { Engines: { Engine1: { cutoffSw: props.globals.getNode("/controls/engines/engine[0]/cutoff-switch"), firePb: props.globals.getNode("/controls/engines/engine[0]/fire-btn"), }, Engine2: { cutoffSw: props.globals.getNode("/controls/engines/engine[1]/cutoff-switch"), firePb: props.globals.getNode("/controls/engines/engine[1]/fire-btn"), }, }, }; var ECAM = { fwcWarningPhase: props.globals.initNode("/ECAM/warning-phase", 1, "INT"), }; var Engines = { Engine1: { epractual: props.globals.getNode("/engines/engine[0]/epr-actual"), n1actual: props.globals.getNode("/engines/engine[0]/n1-actual"), n2actual: props.globals.getNode("/engines/engine[0]/n2-actual"), }, Engine2: { epractual: props.globals.getNode("/engines/engine[1]/epr-actual"), n1actual: props.globals.getNode("/engines/engine[1]/n1-actual"), n2actual: props.globals.getNode("/engines/engine[1]/n2-actual"), }, }; var Gear = { compression: [props.globals.getNode("/gear/gear[0]/compression-norm"),props.globals.getNode("/gear/gear[1]/compression-norm"),props.globals.getNode("/gear/gear[2]/compression-norm")], }; var Instrumentation = { AirspeedIndicator: { indicatedSpdKt: props.globals.getNode("/instrumentation/airspeed-indicator/indicated-speed-kt"), }, }; var Options = { eng: props.globals.getNode("/options/eng"), }; var Position = { gearAglFt: props.globals.getNode("/position/gear-agl-ft"), }; var Sim = { Time: { elapsedSec: props.globals.getNode("/sim/time/elapsed-sec"), }, }; setprop("/systems/acconfig/property-tree-setup-loaded", 1);