From 047750afdcf0097b5428cfbc974db9f6efcff0b4 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Thu, 11 May 2017 18:58:16 -0400 Subject: [PATCH] new FBW Settings dialog to monitor FBW/hydraulic outputs --- AircraftConfig/fbw.xml | 117 +++++++++++++++++++++++++++++++++++++++++ Nasal/FMGC.nas | 6 +-- 2 files changed, 120 insertions(+), 3 deletions(-) diff --git a/AircraftConfig/fbw.xml b/AircraftConfig/fbw.xml index 7456b696..f1aacb88 100644 --- a/AircraftConfig/fbw.xml +++ b/AircraftConfig/fbw.xml @@ -101,6 +101,123 @@ + + hbox + + + true + + + + + + true + + + + + hbox + + + vbox + + + 150 + /controls/flight/aileron-sum + -1 + 1 + 0.0001 + true + + + + + + hbox + + + true + + + + + + true + + + + + hbox + + + vbox + + + + + + 2 + 0 + 150 + true + /controls/flight/elevator-sum + -1 + 1 + 0.0001 + true + + + + + vbox + + + + + + 2 + 0 + 150 + true + /controls/flight/elevator-trim + -1 + 1 + 0.0001 + true + + + + + + hbox + + + true + + + + + + true + + + + + hbox + + + vbox + + + 150 + /controls/flight/rudder-fdm + -1 + 1 + 0.0001 + true + + + diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index 02a015c9..a6aa9a3f 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -4,14 +4,14 @@ # Very Simple at the moment, but will evolve into a fully-fledged FMGC System. -JD setlistener("/gear/gear[1]/wow", func { - gearfunc(); + flarecheck(); }); setlistener("/gear/gear[2]/wow", func { - gearfunc(); + flarecheck(); }); -var gearfunc = func { +var flarecheck = func { var gear1 = getprop("/gear/gear[1]/wow"); var gear2 = getprop("/gear/gear[2]/wow"); var state1 = getprop("/systems/thrust/state1");