From 0dd4f55400241d971d1e56c50d11c63d2df67052 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 8 Jun 2021 16:53:09 +0100 Subject: [PATCH] Correct acconfig.nas failures resetting; brake guague --> use lag_filter instead of property rules filter --- AircraftConfig/acconfig.nas | 29 +++----------------------- Models/FlightDeck/a320.flightdeck.xml | 4 ++-- Nasal/FBW/it-fbw.nas | 3 +++ Systems/a320-hydraulic.xml | 30 +++++++++++++++++++++++++++ Systems/libraries.xml | 29 -------------------------- 5 files changed, 38 insertions(+), 57 deletions(-) diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index e963ddc1..6b627de1 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -23,39 +23,15 @@ var spinning = maketimer(0.05, func { var failReset = func { systems.ELEC.resetFail(); systems.PNEU.resetFail(); + fbw.FBW.resetFail(); + systems.HYD.resetFail(); } var failResetOld = func { - setprop("/systems/failures/fctl/elac1", 0); - setprop("/systems/failures/fctl/elac2", 0); - setprop("/systems/failures/fctl/sec1", 0); - setprop("/systems/failures/fctl/sec2", 0); - setprop("/systems/failures/fctl/sec3", 0); - setprop("/systems/failures/fctl/fac1", 0); - setprop("/systems/failures/fctl/fac2", 0); - setprop("/systems/failures/fctl/rtlu-1", 0); - setprop("/systems/failures/fctl/rtlu-2", 0); 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/spoilers/spoiler-l1", 0); - setprop("/systems/failures/spoilers/spoiler-l2", 0); - setprop("/systems/failures/spoilers/spoiler-l3", 0); - setprop("/systems/failures/spoilers/spoiler-l4", 0); - setprop("/systems/failures/spoilers/spoiler-l5", 0); - setprop("/systems/failures/spoilers/spoiler-r1", 0); - setprop("/systems/failures/spoilers/spoiler-r2", 0); - setprop("/systems/failures/spoilers/spoiler-r3", 0); - setprop("/systems/failures/spoilers/spoiler-r4", 0); - setprop("/systems/failures/spoilers/spoiler-r5", 0); - setprop("/systems/failures/hyd-blue", 0); - setprop("/systems/failures/hyd-green", 0); - setprop("/systems/failures/hyd-yellow", 0); - setprop("/systems/failures/pump-blue", 0); - setprop("/systems/failures/pump-green", 0); - setprop("/systems/failures/pump-yellow-eng", 0); - setprop("/systems/failures/pump-yellow-elec", 0); setprop("/systems/failures/fire/cargo-aft-fire", 0); setprop("/systems/failures/fire/cargo-fwd-fire", 0); setprop("/systems/failures/fire/engine-left-fire", 0); @@ -65,6 +41,7 @@ var failResetOld = func { } failResetOld(); + setprop("/systems/acconfig/autoconfig-running", 0); setprop("/systems/acconfig/spinning", 0); setprop("/systems/acconfig/spin", "-"); diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index cd816a46..c45e4ec1 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -360,7 +360,7 @@ 1 - systems/hydraulic/brakes/pressure-left-psi-output + systems/hydraulic/brakes/pressure-left-psi 0 @@ -392,7 +392,7 @@ 1 - systems/hydraulic/brakes/pressure-right-psi-output + systems/hydraulic/brakes/pressure-right-psi 0 diff --git a/Nasal/FBW/it-fbw.nas b/Nasal/FBW/it-fbw.nas index 18b21fec..120e4a89 100644 --- a/Nasal/FBW/it-fbw.nas +++ b/Nasal/FBW/it-fbw.nas @@ -64,6 +64,9 @@ var FBW = { sec3: props.globals.getNode("/systems/failures/fctl/sec3"), fac1: props.globals.getNode("/systems/failures/fctl/fac1"), fac2: props.globals.getNode("/systems/failures/fctl/fac2"), + rtlu1: props.globals.getNode("/systems/failures/fctl/rtlu-1"), + rtlu2: props.globals.getNode("/systems/failures/fctl/rtlu-2"), + rtlu2: props.globals.getNode("/systems/failures/fctl/rtlu-2"), ths: props.globals.getNode("/systems/failures/fctl/ths-jam"), spoilerl1: props.globals.getNode("/systems/failures/spoilers/spoiler-l1"), spoilerl2: props.globals.getNode("/systems/failures/spoilers/spoiler-l2"), diff --git a/Systems/a320-hydraulic.xml b/Systems/a320-hydraulic.xml index 30264be1..cfc655f0 100644 --- a/Systems/a320-hydraulic.xml +++ b/Systems/a320-hydraulic.xml @@ -541,6 +541,36 @@ /systems/hydraulic/yellow-accumulator-psi-cmd ge 0 + + + /systems/hydraulic/yellow-accumulator-psi + 9 + + + + + + /systems/hydraulic/brakes/mode ne 1 + + + + + + + /systems/hydraulic/brakes/mode ne 1 + + + + + /systems/hydraulic/brakes/pressure-left-psi-input + 9 + + + + /systems/hydraulic/brakes/pressure-right-psi-input + 9 + + diff --git a/Systems/libraries.xml b/Systems/libraries.xml index ba0338a4..fecc9de2 100644 --- a/Systems/libraries.xml +++ b/Systems/libraries.xml @@ -1325,33 +1325,4 @@ /instrumentation/mk-viii/inputs/discretes/landing-flaps - - - - - noise-spike - - /systems/hydraulic/yellow-accumulator-psi - - /systems/hydraulic/yellow-accumulator-psi-output - 3000 - - - - noise-spike - - /systems/hydraulic/brakes/pressure-left-psi - - /systems/hydraulic/brakes/pressure-left-psi-output - 3000 - - - - noise-spike - - /systems/hydraulic/brakes/pressure-right-psi - - /systems/hydraulic/brakes/pressure-right-psi-output - 3000 -