2020-04-27 13:58:38 +00:00
|
|
|
# A320 Property Tree Setup
|
2022-01-11 02:17:41 +00:00
|
|
|
# Copyright (c) 2022 Josh Davidson (Octal450) and Jonathan Redpath
|
2020-04-27 13:58:38 +00:00
|
|
|
# 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()
|
|
|
|
|
2021-06-10 15:38:16 +00:00
|
|
|
var Autopilot = {
|
|
|
|
Settings: {
|
|
|
|
headingBugDeg: props.globals.getNode("/autopilot/settings/heading-bug-deg",1),
|
|
|
|
targetAltitudeFt: props.globals.getNode("/autopilot/settings/target-altitude-ft",1),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-11-29 13:17:56 +00:00
|
|
|
var Accelerations = {
|
|
|
|
pilotGDamped: props.globals.getNode("/accelerations/pilot-gdamped"),
|
|
|
|
};
|
|
|
|
|
2020-07-25 23:13:54 +00:00
|
|
|
var Acconfig = {
|
|
|
|
running: props.globals.getNode("/systems/acconfig/autoconfig-running"),
|
|
|
|
};
|
|
|
|
|
2020-04-27 13:58:38 +00:00
|
|
|
var APU = {
|
|
|
|
rpm: props.globals.getNode("/engines/engine[2]/n1"),
|
|
|
|
};
|
|
|
|
|
|
|
|
var Consumables = {
|
|
|
|
Fuel: {
|
|
|
|
totalFuelLbs: props.globals.getNode("/consumables/fuel/total-fuel-lbs"),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
var Controls = {
|
|
|
|
Engines: {
|
|
|
|
startSw: props.globals.getNode("/controls/engines/engine-start-switch"),
|
|
|
|
Engine: {
|
2020-11-22 22:00:21 +00:00
|
|
|
cutoff: [props.globals.getNode("/controls/engines/engine[0]/cutoff"), props.globals.getNode("/controls/engines/engine[1]/cutoff")],
|
2020-04-27 13:58:38 +00:00
|
|
|
cutoffSw: [props.globals.getNode("/controls/engines/engine[0]/cutoff-switch"), props.globals.getNode("/controls/engines/engine[1]/cutoff-switch")],
|
|
|
|
firePb: [props.globals.getNode("/controls/engines/engine[0]/fire-btn"), props.globals.getNode("/controls/engines/engine[1]/fire-btn")],
|
2021-04-22 21:44:17 +00:00
|
|
|
reverseCmd: [props.globals.getNode("/controls/engines/engine[0]/reverse-cmd"), props.globals.getNode("/controls/engines/engine[1]/reverse-cmd")],
|
|
|
|
reverseLever: [props.globals.getNode("/controls/engines/engine[0]/reverse-lever"), props.globals.getNode("/controls/engines/engine[1]/reverse-lever")],
|
|
|
|
starter: [props.globals.getNode("/controls/engines/engine[0]/starter"), props.globals.getNode("/controls/engines/engine[1]/starter")],
|
2020-04-27 13:58:38 +00:00
|
|
|
throttle: [props.globals.getNode("/controls/engines/engine[0]/throttle"), props.globals.getNode("/controls/engines/engine[1]/throttle")],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Flight: {
|
|
|
|
aileron: props.globals.getNode("/controls/flight/aileron"),
|
2020-07-11 23:35:03 +00:00
|
|
|
aileronDrivesTiller: props.globals.getNode("/controls/flight/aileron-drives-tiller"),
|
|
|
|
autoCoordination: props.globals.getNode("/controls/flight/auto-coordination"),
|
2021-06-21 15:38:22 +00:00
|
|
|
elevator: props.globals.getNode("/controls/flight/elevator"),
|
2020-07-11 23:35:03 +00:00
|
|
|
elevatorTrim: props.globals.getNode("/controls/flight/elevator-trim"),
|
2020-05-12 02:40:59 +00:00
|
|
|
flaps: props.globals.getNode("/controls/flight/flaps"),
|
|
|
|
flapsTemp: 0,
|
2020-10-16 21:42:09 +00:00
|
|
|
flapsInput: props.globals.getNode("/controls/flight/flaps-input"),
|
2020-05-12 02:40:59 +00:00
|
|
|
flapsPos: props.globals.getNode("/controls/flight/flaps-pos"),
|
2020-07-12 13:24:16 +00:00
|
|
|
speedbrake: props.globals.getNode("/controls/flight/speedbrake"),
|
2020-07-11 23:35:03 +00:00
|
|
|
speedbrakeArm: props.globals.getNode("/controls/flight/speedbrake-arm"),
|
2021-08-08 04:14:01 +00:00
|
|
|
speedbrakeTemp: 0,
|
2021-06-21 15:38:22 +00:00
|
|
|
rudder: props.globals.getNode("/controls/flight/rudder"),
|
2020-07-16 18:50:01 +00:00
|
|
|
rudderTrim: props.globals.getNode("/controls/flight/rudder-trim"),
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
|
|
|
Gear: {
|
2020-07-25 23:13:54 +00:00
|
|
|
brake: [props.globals.getNode("/controls/gear/brake-left"),props.globals.getNode("/controls/gear/brake-right")],
|
2021-11-02 21:32:24 +00:00
|
|
|
brakeParking: props.globals.getNode("/controls/gear/brake-parking"),
|
2020-04-27 13:58:38 +00:00
|
|
|
gearDown: props.globals.getNode("/controls/gear/gear-down"),
|
|
|
|
},
|
2021-06-22 16:52:24 +00:00
|
|
|
Lighting: {
|
|
|
|
landingLights: [props.globals.getNode("/controls/lighting/landing-lights[0]"),props.globals.getNode("/controls/lighting/landing-lights[1]"),props.globals.getNode("/controls/lighting/landing-lights[2]")],
|
2022-01-02 17:24:59 +00:00
|
|
|
noSmokingSign: props.globals.getNode("/controls/lighting/no-smoking-sign"),
|
|
|
|
seatbeltSign: props.globals.getNode("/controls/lighting/seatbelt-sign"),
|
|
|
|
strobe: props.globals.getNode("/controls/lighting/strobe"),
|
2021-06-22 16:52:24 +00:00
|
|
|
},
|
2020-10-04 14:18:22 +00:00
|
|
|
Switches: {
|
|
|
|
annunTest: props.globals.getNode("/controls/switches/annun-test"),
|
2022-01-02 17:24:59 +00:00
|
|
|
emerLtsSwitch: props.globals.getNode("/controls/switches/emer-lights"),
|
|
|
|
noSmokingSwitch: props.globals.getNode("/controls/switches/no-smoking-sign"),
|
|
|
|
seatbeltSwitch: props.globals.getNode("/controls/switches/seatbelt-sign"),
|
2020-10-04 14:18:22 +00:00
|
|
|
},
|
2020-04-27 13:58:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var ECAM = {
|
2020-11-18 16:58:09 +00:00
|
|
|
fwcWarningPhase: props.globals.getNode("/ECAM/warning-phase"),
|
2020-04-27 13:58:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var Engines = {
|
|
|
|
Engine: {
|
2020-09-27 17:08:34 +00:00
|
|
|
egtActual: [props.globals.getNode("/engines/engine[0]/egt-actual"), props.globals.getNode("/engines/engine[1]/egt-actual")],
|
2020-04-27 13:58:38 +00:00
|
|
|
eprActual: [props.globals.getNode("/engines/engine[0]/epr-actual"), props.globals.getNode("/engines/engine[1]/epr-actual")],
|
2021-05-03 12:29:56 +00:00
|
|
|
fuelFlow: [props.globals.getNode("/engines/engine[0]/ff-actual"), props.globals.getNode("/engines/engine[1]/ff-actual")],
|
2020-04-27 13:58:38 +00:00
|
|
|
n1Actual: [props.globals.getNode("/engines/engine[0]/n1-actual"), props.globals.getNode("/engines/engine[1]/n1-actual")],
|
|
|
|
n2Actual: [props.globals.getNode("/engines/engine[0]/n2-actual"), props.globals.getNode("/engines/engine[1]/n2-actual")],
|
2020-09-20 19:52:54 +00:00
|
|
|
oilPsi: [props.globals.getNode("/engines/engine[0]/oil-psi-actual"), props.globals.getNode("/engines/engine[1]/oil-psi-actual")],
|
2021-07-10 21:33:33 +00:00
|
|
|
oilQt: [props.globals.getNode("/engines/engine[0]/oil-qt-actual"), props.globals.getNode("/engines/engine[1]/oil-qt-actual")],
|
2020-09-16 18:07:45 +00:00
|
|
|
thrust: [props.globals.getNode("/engines/engine[0]/thrust-lb"), props.globals.getNode("/engines/engine[1]/thrust-lb")],
|
2020-09-27 17:08:34 +00:00
|
|
|
reverser: [props.globals.getNode("/engines/engine[0]/reverser-pos-norm"), props.globals.getNode("/engines/engine[1]/reverser-pos-norm")],
|
2020-04-27 13:58:38 +00:00
|
|
|
state: [props.globals.getNode("/engines/engine[0]/state"), props.globals.getNode("/engines/engine[1]/state")],
|
2021-04-23 17:21:07 +00:00
|
|
|
stateTemp: [0, 0],
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-04-28 14:16:08 +00:00
|
|
|
var Environment = {
|
|
|
|
magVar: props.globals.getNode("/environment/magnetic-variation-deg"),
|
2020-09-16 18:07:45 +00:00
|
|
|
tempDegC: props.globals.getNode("/environment/temperature-degc"),
|
2020-10-05 18:18:10 +00:00
|
|
|
windFromHdg: props.globals.getNode("/environment/wind-from-heading-deg"),
|
|
|
|
windSpeedKt: props.globals.getNode("/environment/wind-speed-kt"),
|
2020-04-28 14:16:08 +00:00
|
|
|
};
|
|
|
|
|
2020-04-27 15:37:43 +00:00
|
|
|
var Fdm = {
|
|
|
|
JSBsim: {
|
2020-09-20 19:52:54 +00:00
|
|
|
Aero: {
|
|
|
|
alpha: props.globals.getNode("/fdm/jsbsim/aero/alpha-deg"),
|
2020-09-25 15:40:46 +00:00
|
|
|
alphaNorm: props.globals.getNode("/fdm/jsbsim/aero/alpha-deg-norm"),
|
2020-09-20 19:52:54 +00:00
|
|
|
},
|
2021-08-05 14:54:38 +00:00
|
|
|
Fadec: {
|
|
|
|
detent: [props.globals.getNode("/fdm/jsbsim/fadec/control-1/detent"),props.globals.getNode("/fdm/jsbsim/fadec/control-2/detent")],
|
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
Fcs: {
|
2020-09-16 18:07:45 +00:00
|
|
|
brake: [props.globals.getNode("/fdm/jsbsim/fcs/left-brake-cmd-norm"),props.globals.getNode("/fdm/jsbsim/fcs/right-brake-cmd-norm")],
|
2020-04-27 15:37:43 +00:00
|
|
|
flapDeg: props.globals.getNode("/fdm/jsbsim/fcs/flap-pos-deg"),
|
|
|
|
slatDeg: props.globals.getNode("/fdm/jsbsim/fcs/slat-pos-deg"),
|
2021-12-04 17:03:28 +00:00
|
|
|
slatLocked: props.globals.getNode("/fdm/jsbsim/fcs/sfcc/slat-locked"),
|
2020-04-27 15:37:43 +00:00
|
|
|
},
|
|
|
|
Fbw: {
|
|
|
|
aileron: props.globals.getNode("/fdm/jsbsim/fbw/aileron-sidestick"),
|
|
|
|
elevator: props.globals.getNode("/fdm/jsbsim/fbw/elevator-sidestick"),
|
|
|
|
},
|
2020-10-04 14:18:22 +00:00
|
|
|
Hydraulics: {
|
|
|
|
Rudder: {
|
2020-10-11 00:23:41 +00:00
|
|
|
trimDeg: props.globals.getNode("/fdm/jsbsim/hydraulics/rudder/trim-deg"),
|
2020-10-04 14:18:22 +00:00
|
|
|
},
|
2020-11-23 17:54:32 +00:00
|
|
|
Stabilizer: {
|
|
|
|
cmdDeg: props.globals.getNode("/fdm/jsbsim/hydraulics/stabilizer/cmd-deg"),
|
|
|
|
},
|
2020-10-04 14:18:22 +00:00
|
|
|
},
|
2020-09-16 18:07:45 +00:00
|
|
|
Inertia: {
|
|
|
|
weightLbs: props.globals.getNode("/fdm/jsbsim/inertia/weight-lbs"),
|
|
|
|
},
|
2020-08-14 18:51:57 +00:00
|
|
|
Position: {
|
|
|
|
wow: props.globals.getNode("/fdm/jsbsim/position/wow"),
|
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
Propulsion: {
|
2020-09-16 18:07:45 +00:00
|
|
|
tatC: props.globals.getNode("/fdm/jsbsim/propulsion/tat-c"),
|
2020-04-27 15:37:43 +00:00
|
|
|
Engine: {
|
|
|
|
fuelUsed: [props.globals.getNode("/fdm/jsbsim/propulsion/engine[0]/fuel-used-lbs"), props.globals.getNode("/fdm/jsbsim/propulsion/engine[1]/fuel-used-lbs")],
|
2020-09-15 17:17:06 +00:00
|
|
|
reverserAngle: [props.globals.getNode("/fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad"), props.globals.getNode("/fdm/jsbsim/propulsion/engine[1]/reverser-angle-rad")],
|
2020-04-27 15:37:43 +00:00
|
|
|
},
|
2022-01-02 17:24:59 +00:00
|
|
|
Tank: {
|
|
|
|
contentsLbs: [props.globals.getNode("/fdm/jsbsim/propulsion/tank[0]/contents-lbs"), props.globals.getNode("/fdm/jsbsim/propulsion/tank[1]/contents-lbs"), props.globals.getNode("/fdm/jsbsim/propulsion/tank[2]/contents-lbs"),
|
|
|
|
props.globals.getNode("/fdm/jsbsim/propulsion/tank[3]/contents-lbs"), props.globals.getNode("/fdm/jsbsim/propulsion/tank[4]/contents-lbs"), props.globals.getNode("/fdm/jsbsim/propulsion/tank[5]/contents-lbs"), props.globals.getNode("/fdm/jsbsim/propulsion/tank[6]/contents-lbs")],
|
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-04-27 13:58:38 +00:00
|
|
|
var FMGC = {
|
|
|
|
CasCompare: {
|
|
|
|
casRejectAll: props.globals.getNode("/systems/fmgc/cas-compare/cas-reject-all"),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
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")],
|
|
|
|
position: [props.globals.getNode("/gear/gear[0]/position-norm"), props.globals.getNode("/gear/gear[1]/position-norm"), props.globals.getNode("/gear/gear[2]/position-norm")],
|
2020-05-03 17:34:38 +00:00
|
|
|
rollspeed: [props.globals.getNode("/gear/gear[0]/rollspeed-ms"), props.globals.getNode("/gear/gear[1]/rollspeed-ms"), props.globals.getNode("/gear/gear[2]/rollspeed-ms")],
|
2020-09-15 17:17:06 +00:00
|
|
|
wow: [props.globals.getNode("/gear/gear[0]/wow"), props.globals.getNode("/gear/gear[1]/wow"), props.globals.getNode("/gear/gear[2]/wow")],
|
2021-04-23 17:21:07 +00:00
|
|
|
wowTemp: [0, 0, 0],
|
2020-04-27 13:58:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var Instrumentation = {
|
2021-12-24 19:33:31 +00:00
|
|
|
Adf: {
|
|
|
|
ident: [props.globals.getNode("/instrumentation/adf[0]/ident"), props.globals.getNode("/instrumentation/adf[1]/ident")],
|
|
|
|
Frequencies: {
|
|
|
|
selectedKhz: [props.globals.getNode("/instrumentation/adf[0]/frequencies/selected-khz"), props.globals.getNode("/instrumentation/adf[1]/frequencies/selected-khz")],
|
|
|
|
},
|
|
|
|
},
|
2020-04-27 13:58:38 +00:00
|
|
|
AirspeedIndicator: {
|
|
|
|
indicatedSpdKt: props.globals.getNode("/instrumentation/airspeed-indicator/indicated-speed-kt"),
|
2020-07-11 19:13:21 +00:00
|
|
|
indicatedMach: props.globals.getNode("/instrumentation/airspeed-indicator/indicated-mach"),
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
|
|
|
Altimeter: {
|
|
|
|
indicatedFt: props.globals.getNode("/instrumentation/altimeter[0]/indicated-altitude-ft"),
|
2020-04-27 15:37:43 +00:00
|
|
|
oldQnh: props.globals.getNode("/instrumentation/altimeter[0]/oldqnh"),
|
|
|
|
settingInhg: props.globals.getNode("/instrumentation/altimeter[0]/setting-inhg"),
|
|
|
|
std: props.globals.getNode("/instrumentation/altimeter[0]/std"),
|
2021-11-06 13:00:16 +00:00
|
|
|
indicatedFtIESI: props.globals.getNode("/instrumentation/altimeter[6]/indicated-altitude-ft"),
|
|
|
|
oldQnhIESI: props.globals.getNode("/instrumentation/altimeter[6]/oldqnh"),
|
|
|
|
settingInhgIESI: props.globals.getNode("/instrumentation/altimeter[6]/setting-inhg"),
|
|
|
|
stdIESI: props.globals.getNode("/instrumentation/altimeter[6]/std"),
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
2020-10-04 14:18:22 +00:00
|
|
|
Clock: {
|
|
|
|
indicatedString: props.globals.getNode("/instrumentation/clock/indicated-string"),
|
|
|
|
indicatedStringShort: props.globals.getNode("/instrumentation/clock/indicated-short-string"),
|
|
|
|
},
|
2021-06-06 16:45:04 +00:00
|
|
|
Dcdu: {
|
|
|
|
lcdOn: props.globals.initNode("/instrumentation/dcdu/lcd-on", 0, "BOOL"),
|
|
|
|
},
|
|
|
|
Du: {
|
|
|
|
du1On: props.globals.initNode("/instrumentation/du/du1-on", 0, "BOOL"),
|
|
|
|
du2On: props.globals.initNode("/instrumentation/du/du2-on", 0, "BOOL"),
|
|
|
|
du3On: props.globals.initNode("/instrumentation/du/du3-on", 0, "BOOL"),
|
|
|
|
du4On: props.globals.initNode("/instrumentation/du/du4-on", 0, "BOOL"),
|
|
|
|
du5On: props.globals.initNode("/instrumentation/du/du5-on", 0, "BOOL"),
|
|
|
|
du6On: props.globals.initNode("/instrumentation/du/du6-on", 0, "BOOL"),
|
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
Efis: {
|
2020-04-27 13:58:38 +00:00
|
|
|
Inputs: {
|
2020-04-27 15:37:43 +00:00
|
|
|
arpt: [props.globals.initNode("/instrumentation/efis[0]/inputs/arpt", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/arpt", 0, "BOOL")],
|
|
|
|
cstr: [props.globals.initNode("/instrumentation/efis[0]/inputs/CSTR", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/CSTR", 0, "BOOL")],
|
|
|
|
dme: [props.globals.initNode("/instrumentation/efis[0]/inputs/DME", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/DME", 0, "BOOL")],
|
|
|
|
ndb: [props.globals.initNode("/instrumentation/efis[0]/inputs/NDB", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/NDB", 0, "BOOL")],
|
|
|
|
rangeNm: [props.globals.initNode("/instrumentation/efis[0]/inputs/range-nm", 20, "INT"), props.globals.initNode("/instrumentation/efis[1]/inputs/range-nm", 20, "INT")],
|
|
|
|
tfc: [props.globals.initNode("/instrumentation/efis[0]/inputs/tfc", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/tfc", 0, "BOOL")],
|
|
|
|
vord: [props.globals.initNode("/instrumentation/efis[0]/inputs/VORD", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/VORD", 0, "BOOL")],
|
|
|
|
wpt: [props.globals.initNode("/instrumentation/efis[0]/inputs/wpt", 0, "BOOL"), props.globals.initNode("/instrumentation/efis[1]/inputs/wpt", 0, "BOOL")],
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
Nd: {
|
|
|
|
displayMode: [props.globals.initNode("/instrumentation/efis[0]/nd/display-mode", "NAV", "STRING"), props.globals.initNode("/instrumentation/efis[1]/nd/display-mode", "NAV", "STRING")],
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
Mfd: {
|
|
|
|
pnlModeNum: [props.globals.initNode("/instrumentation/efis[0]/mfd/pnl_mode-num", 2, "INT"), props.globals.initNode("/instrumentation/efis[1]/mfd/pnl_mode-num", 2, "INT")],
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
|
|
|
},
|
2021-01-28 13:59:08 +00:00
|
|
|
GPS: {
|
|
|
|
altitude: props.globals.getNode("/instrumentation/gps/indicated-altitude-ft"),
|
|
|
|
latitude: props.globals.getNode("/instrumentation/gps/indicated-latitude-deg"),
|
|
|
|
longitude: props.globals.getNode("/instrumentation/gps/indicated-longitude-deg"),
|
|
|
|
trackMag: props.globals.getNode("/instrumentation/gps/indicated-track-magnetic-deg"),
|
|
|
|
gs: props.globals.getNode("/instrumentation/gps/indicated-ground-speed-kt"),
|
|
|
|
},
|
2021-06-06 16:45:04 +00:00
|
|
|
Iesi: {
|
|
|
|
lcdOn: props.globals.initNode("/instrumentation/iesi/lcd-on", 0, "BOOL"),
|
|
|
|
},
|
|
|
|
Mcdu: {
|
|
|
|
mcdu1On: props.globals.initNode("/instrumentation/mcdu/mcdu1-on", 0, "BOOL"),
|
|
|
|
mcdu2On: props.globals.initNode("/instrumentation/mcdu/mcdu2-on", 0, "BOOL"),
|
|
|
|
},
|
2020-10-03 09:59:43 +00:00
|
|
|
MKVII: {
|
|
|
|
Inputs: {
|
|
|
|
Discretes: {
|
2021-08-03 17:46:06 +00:00
|
|
|
flap3Override: props.globals.getNode("/instrumentation/mk-viii/inputs/discretes/momentary-flap-3-override"),
|
2022-01-02 17:52:36 +00:00
|
|
|
flapAllOverride: props.globals.getNode("/instrumentation/mk-viii/inputs/discretes/momentary-flap-all-override"),
|
|
|
|
steepApproach: props.globals.getNode("/instrumentation/mk-viii/inputs/discretes/steep-approach"),
|
2020-10-03 09:59:43 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-10-03 09:29:57 +00:00
|
|
|
Nav: {
|
2021-12-27 11:44:08 +00:00
|
|
|
Frequencies: {
|
|
|
|
selectedMhz: [props.globals.getNode("/instrumentation/nav[0]/frequencies/selected-mhz"), props.globals.getNode("/instrumentation/nav[1]/frequencies/selected-mhz"), props.globals.getNode("/instrumentation/nav[2]/frequencies/selected-mhz"), props.globals.getNode("/instrumentation/nav[3]/frequencies/selected-mhz")],
|
|
|
|
},
|
|
|
|
Radials: {
|
|
|
|
selectedDeg: [props.globals.getNode("/instrumentation/nav[0]/radials/selected-deg"), props.globals.getNode("/instrumentation/nav[1]/radials/selected-deg"), props.globals.getNode("/instrumentation/nav[2]/radials/selected-deg"), props.globals.getNode("/instrumentation/nav[3]/radials/selected-deg")],
|
|
|
|
},
|
2020-10-03 09:29:57 +00:00
|
|
|
gsDeflection: props.globals.getNode("/instrumentation/nav[0]/gs-needle-deflection-norm"),
|
|
|
|
locDeflection: props.globals.getNode("/instrumentation/nav[0]/heading-needle-deflection-norm"),
|
|
|
|
},
|
2021-08-03 15:56:35 +00:00
|
|
|
PFD: {
|
|
|
|
windDirection: props.globals.getNode("/instrumentation/pfd/wind-direction"),
|
|
|
|
windSpeed: props.globals.getNode("/instrumentation/pfd/wind-speed"),
|
|
|
|
},
|
2020-04-27 15:37:43 +00:00
|
|
|
TCAS: {
|
2021-06-08 17:16:19 +00:00
|
|
|
servicable: props.globals.getNode("/instrumentation/tcas/serviceable"),
|
2020-04-27 15:37:43 +00:00
|
|
|
Inputs: {
|
|
|
|
mode: props.globals.getNode("/instrumentation/tcas/inputs/mode"),
|
|
|
|
},
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2021-07-27 16:36:09 +00:00
|
|
|
var Modes = {
|
|
|
|
EcamDuXfr: props.globals.getNode("/modes/ecam-du-xfr"),
|
|
|
|
};
|
|
|
|
|
2020-04-27 13:58:38 +00:00
|
|
|
var Options = {
|
|
|
|
eng: props.globals.getNode("/options/eng"),
|
|
|
|
};
|
|
|
|
|
|
|
|
var Orientation = {
|
2021-06-22 16:52:24 +00:00
|
|
|
heading: props.globals.getNode("/orientation/heading-deg"),
|
2020-04-27 13:58:38 +00:00
|
|
|
pitch: props.globals.getNode("/orientation/pitch-deg"),
|
|
|
|
roll: props.globals.getNode("/orientation/roll-deg"),
|
|
|
|
yaw: props.globals.getNode("/orientation/yaw-deg"),
|
|
|
|
};
|
|
|
|
|
|
|
|
var Position = {
|
2021-06-21 15:38:22 +00:00
|
|
|
altitudeFt: props.globals.getNode("/position/altitude-ft"),
|
2020-04-27 13:58:38 +00:00
|
|
|
gearAglFt: props.globals.getNode("/position/gear-agl-ft"),
|
|
|
|
latitude: props.globals.getNode("/position/latitude-deg"),
|
|
|
|
longitude: props.globals.getNode("/position/longitude-deg"),
|
|
|
|
};
|
|
|
|
|
2021-11-02 21:32:24 +00:00
|
|
|
var Services = {
|
|
|
|
Chocks: {
|
|
|
|
enable: props.globals.getNode("/services/chocks/enable"),
|
|
|
|
enableTemp: 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-04-27 13:58:38 +00:00
|
|
|
var Sim = {
|
|
|
|
aero: props.globals.getNode("/sim/aero"),
|
2021-06-09 16:25:17 +00:00
|
|
|
aircraft: props.globals.getNode("/sim/aircraft"),
|
2020-11-27 17:13:47 +00:00
|
|
|
CurrentView: {
|
|
|
|
fieldOfView: props.globals.getNode("/sim/current-view/field-of-view", 1),
|
|
|
|
headingOffsetDeg: props.globals.getNode("/sim/current-view/heading-offset-deg", 1),
|
|
|
|
name: props.globals.getNode("/sim/current-view/name", 1),
|
|
|
|
pitchOffsetDeg: props.globals.getNode("/sim/current-view/pitch-offset-deg", 1),
|
|
|
|
rollOffsetDeg: props.globals.getNode("/sim/current-view/roll-offset-deg", 1),
|
2021-04-27 12:39:42 +00:00
|
|
|
viewNumber: props.globals.getNode("/sim/current-view/view-number", 1),
|
2020-11-27 17:13:47 +00:00
|
|
|
viewNumberRaw: props.globals.getNode("/sim/current-view/view-number-raw", 1),
|
|
|
|
zOffsetDefault: props.globals.getNode("/sim/current-view/z-offset-default", 1),
|
|
|
|
xOffsetM: props.globals.getNode("/sim/current-view/x-offset-m", 1),
|
|
|
|
yOffsetM: props.globals.getNode("/sim/current-view/y-offset-m", 1),
|
|
|
|
zOffsetM: props.globals.getNode("/sim/current-view/z-offset-m", 1),
|
|
|
|
zOffsetMaxM: props.globals.getNode("/sim/current-view/z-offset-max-m", 1),
|
|
|
|
zOffsetMinM: props.globals.getNode("/sim/current-view/z-offset-min-m", 1),
|
|
|
|
},
|
2021-06-09 16:25:17 +00:00
|
|
|
fgHome: props.globals.getNode("/sim/fg-home"),
|
2020-07-26 12:43:14 +00:00
|
|
|
Input: {
|
|
|
|
Selected: {
|
|
|
|
engine: [props.globals.getNode("/sim/input/selected/engine[0]", 1),props.globals.getNode("/sim/input/selected/engine[1]", 1)],
|
|
|
|
}
|
|
|
|
},
|
2021-06-22 16:52:24 +00:00
|
|
|
Model: {
|
|
|
|
Lights: {
|
|
|
|
navLights: props.globals.getNode("/sim/model/lights/nav-lights"),
|
|
|
|
noseLights: props.globals.getNode("/sim/model/lights/nose-lights"),
|
|
|
|
},
|
|
|
|
},
|
2020-07-23 14:29:44 +00:00
|
|
|
Multiplay: {
|
|
|
|
online: props.globals.getNode("/sim/multiplay/online"),
|
|
|
|
},
|
2020-07-11 22:17:58 +00:00
|
|
|
pause: props.globals.getNode("/sim/freeze/master"),
|
2020-11-27 17:13:47 +00:00
|
|
|
Rendering: {
|
|
|
|
Headshake: {
|
|
|
|
enabled: props.globals.getNode("/sim/rendering/headshake/enabled"),
|
|
|
|
},
|
2021-06-22 16:52:24 +00:00
|
|
|
Shaders: {
|
|
|
|
skydome: props.globals.getNode("/sim/rendering/shaders/skydome"),
|
|
|
|
},
|
2020-11-27 17:13:47 +00:00
|
|
|
},
|
2020-09-16 18:07:45 +00:00
|
|
|
replayState: props.globals.getNode("/sim/freeze/replay-state"),
|
2020-04-27 13:58:38 +00:00
|
|
|
Replay: {
|
|
|
|
replayActive: props.globals.getNode("/sim/replay/replay-state"),
|
|
|
|
},
|
|
|
|
Time: {
|
2020-07-11 23:35:03 +00:00
|
|
|
deltaRealtimeSec: props.globals.getNode("/sim/time/delta-realtime-sec"),
|
2020-04-27 13:58:38 +00:00
|
|
|
elapsedSec: props.globals.getNode("/sim/time/elapsed-sec"),
|
2021-01-28 13:59:08 +00:00
|
|
|
gmtString: props.globals.getNode("/sim/time/gmt-string"),
|
2021-04-23 17:21:07 +00:00
|
|
|
Utc: {
|
2020-10-04 14:18:22 +00:00
|
|
|
day: props.globals.getNode("/sim/time/utc/day"),
|
|
|
|
month: props.globals.getNode("/sim/time/utc/month"),
|
|
|
|
year: props.globals.getNode("/sim/time/utc/year"),
|
|
|
|
},
|
2020-04-27 13:58:38 +00:00
|
|
|
},
|
2021-04-23 17:21:07 +00:00
|
|
|
version: props.globals.getNode("/sim/version/flightgear"),
|
2020-11-28 12:24:24 +00:00
|
|
|
View: {
|
|
|
|
Config: {
|
|
|
|
defaultFieldOfViewDeg: props.globals.getNode("/sim/view/config/default-field-of-view-deg", 1),
|
|
|
|
},
|
|
|
|
},
|
2020-04-27 13:58:38 +00:00
|
|
|
};
|
|
|
|
|
2020-09-15 17:17:06 +00:00
|
|
|
var Systems = {
|
2021-06-19 00:46:57 +00:00
|
|
|
Navigation: {
|
|
|
|
ADR: {
|
|
|
|
Output: {
|
|
|
|
overspeed: props.globals.getNode("/systems/navigation/adr/output/overspeed"),
|
2021-06-19 13:25:21 +00:00
|
|
|
underspeed: props.globals.getNode("/systems/navigation/adr/output/underspeed"),
|
2021-06-19 00:46:57 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-09-15 17:17:06 +00:00
|
|
|
Thrust: {
|
2020-09-20 19:52:54 +00:00
|
|
|
engOut: props.globals.getNode("/systems/thrust/eng-out"),
|
2020-09-15 17:17:06 +00:00
|
|
|
state: [props.globals.getNode("/systems/thrust/state1"), props.globals.getNode("/systems/thrust/state2")],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-04-27 13:58:38 +00:00
|
|
|
var Velocities = {
|
2021-04-23 17:21:07 +00:00
|
|
|
airspeedKt: props.globals.getNode("/velocities/airspeed-kt"),
|
|
|
|
groundspeedKt: props.globals.getNode("/velocities/groundspeed-kt"),
|
2021-11-02 21:32:24 +00:00
|
|
|
groundspeedKtTemp: 0,
|
2020-09-16 18:07:45 +00:00
|
|
|
mach: props.globals.getNode("/velocities/mach"),
|
2020-04-27 13:58:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
setprop("/systems/acconfig/property-tree-setup-loaded", 1);
|