diff --git a/A320-main.xml b/A320-main.xml index ee9ad87d..6504666b 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -507,6 +507,15 @@ + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 0 diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index ceebaae8..33866859 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -28,6 +28,7 @@ var ps_loaded_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/psloaded/dialog", " var init_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/init/dialog", "Aircraft/A320Family/AircraftConfig/ac_init.xml"); var help_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/help/dialog", "Aircraft/A320Family/AircraftConfig/help.xml"); var fbw_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/fbw/dialog", "Aircraft/A320Family/AircraftConfig/fbw.xml"); +var fail_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/fail/dialog", "Aircraft/A320Family/AircraftConfig/fail.xml"); spinning.start(); init_dlg.open(); @@ -55,6 +56,16 @@ var systemsReset = func { itaf.ap_init(); } +var failReset = func { + setprop("/systems/failures/aileron-left", 0); + setprop("/systems/failures/aileron-right", 0); + setprop("/systems/failures/elevator-left", 0); + setprop("/systems/failures/elevator-right", 0); + setprop("/systems/failures/rudder", 0); + setprop("/systems/failures/spoiler-left", 0); + setprop("/systems/failures/spoiler-right", 0); +} + ################ # Panel States # ################ @@ -77,6 +88,7 @@ var colddark = func { setprop("/controls/flight/speedbrake-arm", 0); setprop("/controls/gear/gear-down", 1); systemsReset(); + failReset(); setprop("/it-autoflight/input/fd1", 1); setprop("/it-autoflight/input/fd2", 1); if (getprop("/engines/engine[1]/n2") < 2) { @@ -122,6 +134,7 @@ var beforestart = func { setprop("/controls/flight/speedbrake-arm", 0); setprop("/controls/gear/gear-down", 1); systemsReset(); + failReset(); setprop("/it-autoflight/input/fd1", 1); setprop("/it-autoflight/input/fd2", 1); setprop("/controls/APU/master", 0); @@ -192,6 +205,7 @@ var taxi = func { setprop("/controls/flight/speedbrake-arm", 0); setprop("/controls/gear/gear-down", 1); systemsReset(); + failReset(); setprop("/it-autoflight/input/fd1", 1); setprop("/it-autoflight/input/fd2", 1); setprop("/controls/APU/master", 0); diff --git a/AircraftConfig/fail.xml b/AircraftConfig/fail.xml new file mode 100644 index 00000000..dd9cb5ec --- /dev/null +++ b/AircraftConfig/fail.xml @@ -0,0 +1,137 @@ + + + + + + + + aircraft-config-fail + vbox + + + hbox + + left + + + + + + + + + vbox + + + left + + + + + hbox + + + true + + + + + + true + + + + + + left + /systems/failures/aileron-left + + dialog-apply + + true + + + + + left + /systems/failures/aileron-right + + dialog-apply + + true + + + + + left + /systems/failures/elevator-left + + dialog-apply + + true + + + + + left + /systems/failures/elevator-right + + dialog-apply + + true + + + + + left + /systems/failures/rudder + + dialog-apply + + true + + + + + left + /systems/failures/spoiler-left + + dialog-apply + + true + + + + + left + /systems/failures/spoiler-right + + dialog-apply + + true + + + + + + + diff --git a/AircraftConfig/main.xml b/AircraftConfig/main.xml index 4f0fe002..fd590052 100644 --- a/AircraftConfig/main.xml +++ b/AircraftConfig/main.xml @@ -347,19 +347,37 @@ true - + + hbox + + + + + + + diff --git a/Systems/hydraulics.xml b/Systems/hydraulics.xml index 4484c7f5..5c11aac2 100644 --- a/Systems/hydraulics.xml +++ b/Systems/hydraulics.xml @@ -37,6 +37,10 @@ /gear/gear[2]/wow 1 + + /systems/failures/aileron-left + 0 + @@ -53,31 +57,43 @@ - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/aileron-left + 1 + + 0.5 - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/aileron-left + 0 + + @@ -135,6 +151,10 @@ /gear/gear[2]/wow 1 + + /systems/failures/aileron-right + 0 + @@ -151,31 +171,43 @@ - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/aileron-right + 1 + + -0.5 - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/aileron-right + 0 + + @@ -241,6 +273,14 @@ /controls/flight/speedbrake-lever 0.0 + + /systems/failures/aileron-left + 0 + + + /systems/failures/spoiler-left + 0 + @@ -257,53 +297,162 @@ - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - /systems/hydraulic/yellow-psi - 1500 - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + + /controls/flight/speedbrake-lever + 0.0 + + + /systems/failures/aileron-left + 1 + + + /systems/failures/spoiler-left + 0 + - 0.0 + + + /surface-positions/speedbrake-pos-norm + + /controls/flight/roll-fbw + 0.0 0 + 1.0-0.8 +
+
+
- + /systems/hydraulic/green-psi 1500 - - + + /systems/hydraulic/blue-psi 1500 - - - - - /systems/hydraulic/blue-psi - 1500 - - + + /systems/hydraulic/yellow-psi 1500 - + + + /systems/failures/spoiler-left + 1 + + 0.0 + + + + + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + + /systems/failures/aileron-left + 0 + + + /systems/failures/spoiler-left + 0 + + + /controls/flight/spoiler-left-fbw-cmd-0.2 0-1.00.5
+
+ + + + + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + + /systems/failures/aileron-left + 1 + + + /systems/failures/spoiler-left + 0 + + + + + + /controls/flight/spoiler-left-fbw-cmd + 0.0 0 + -1.00.8 +
/controls/flight/spoiler-left-cmd @@ -352,6 +501,14 @@ /controls/flight/speedbrake-lever 0.0 + + /systems/failures/aileron-right + 0 + + + /systems/failures/spoiler-right + 0 + @@ -368,53 +525,162 @@ - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - /systems/hydraulic/yellow-psi - 1500 - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + + /controls/flight/speedbrake-lever + 0.0 + + + /systems/failures/aileron-right + 1 + + + /systems/failures/spoiler-right + 0 + - 0.0 + + + /surface-positions/speedbrake-pos-norm + + /controls/flight/roll-fbw + 0.0 0 + -1.0-0.8 +
+
+
- + /systems/hydraulic/green-psi 1500 - - + + /systems/hydraulic/blue-psi 1500 - - - - - /systems/hydraulic/blue-psi - 1500 - - + + /systems/hydraulic/yellow-psi 1500 - + + + /systems/failures/spoiler-right + 1 + + 0.0 + + + + + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + + /systems/failures/aileron-right + 0 + + + /systems/failures/spoiler-right + 0 + + + /controls/flight/spoiler-right-fbw-cmd0.2 01.00.5
+
+ + + + + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + + /systems/failures/aileron-right + 1 + + + /systems/failures/spoiler-right + 0 + + + + + + /controls/flight/spoiler-right-fbw-cmd + 0.0 0 + 1.00.8 +
/controls/flight/spoiler-right-cmd @@ -430,6 +696,10 @@ 1.0 + + + + false gain @@ -467,31 +737,43 @@ 1.0 - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/elevator-left + 1 + + 0.1 - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/elevator-left + 0 + + @@ -519,31 +801,43 @@ 1.0 - - - /systems/hydraulic/yellow-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/yellow-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/elevator-right + 1 + + 0.1 - - - /systems/hydraulic/yellow-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - + + + + /systems/hydraulic/yellow-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + + /systems/failures/elevator-right + 0 + +
@@ -590,39 +884,51 @@ 1.0 - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - /systems/hydraulic/yellow-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + /systems/failures/rudder + 1 + + 0 - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - /systems/hydraulic/yellow-psi - 1500 - - + + + + /systems/hydraulic/green-psi + 1500 + + + /systems/hydraulic/blue-psi + 1500 + + + /systems/hydraulic/yellow-psi + 1500 + + + + /systems/failures/rudder + 0 + +