From b1cd528cd3beb2d2edd22c7c96f4df1fa70f209e Mon Sep 17 00:00:00 2001 From: Josh Davidson Date: Wed, 19 Jan 2022 19:27:51 -0500 Subject: [PATCH] FADEC: Fix FLX inhibited with engines off --- Nasal/Systems/fadec-common.nas | 4 ++-- Systems/a320-cfm56-5b4-engine-fadec.xml | 4 ++-- Systems/a320-v2527-a5-engine-fadec.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Nasal/Systems/fadec-common.nas b/Nasal/Systems/fadec-common.nas index 9a6d100f..9e4c0eb2 100644 --- a/Nasal/Systems/fadec-common.nas +++ b/Nasal/Systems/fadec-common.nas @@ -120,11 +120,11 @@ var FADEC = { pts.Gear.wowTemp[1] = pts.Gear.wow[1].getValue(); pts.Gear.wowTemp[2] = pts.Gear.wow[2].getValue(); - if (me.Limit.flexActiveCmd.getBoolValue() and me.n1Mode[0].getValue() == 0 and me.n1Mode[1].getValue() == 0 and pts.Gear.wowTemp[1] and pts.Gear.wowTemp[2] and pts.Velocities.groundspeedKt.getValue() < 40 and (pts.Engines.Engine.stateTemp[0] == 3 or pts.Engines.Engine.stateTemp[1] == 3)) { + if (me.Limit.flexActiveCmd.getBoolValue() and me.n1Mode[0].getValue() == 0 and me.n1Mode[1].getValue() == 0 and pts.Gear.wowTemp[1] and pts.Gear.wowTemp[2] and pts.Velocities.groundspeedKt.getValue() < 40) { if (!me.Limit.flexActive.getBoolValue()) { me.Limit.flexActive.setBoolValue(1); } - } else if (!me.Limit.flexActiveCmd.getBoolValue() or pts.Engines.Engine.stateTemp[0] != 3 or pts.Engines.Engine.stateTemp[1] != 3) { + } else if (!me.Limit.flexActiveCmd.getBoolValue()) { if (me.Limit.flexActive.getBoolValue()) { me.Limit.flexActive.setBoolValue(0); } diff --git a/Systems/a320-cfm56-5b4-engine-fadec.xml b/Systems/a320-cfm56-5b4-engine-fadec.xml index e871045a..d60ada3a 100644 --- a/Systems/a320-cfm56-5b4-engine-fadec.xml +++ b/Systems/a320-cfm56-5b4-engine-fadec.xml @@ -1133,12 +1133,12 @@ fadec/max-detent eq 4 fadec/limit/flex-active eq 1 - fadec/limit/eng-off-wow-switch eq 0 + position/wow eq 0 fadec/max-detent le 4 fadec/limit/flex-active eq 1 - fadec/limit/eng-off-wow-switch eq 1 + position/wow eq 1 fadec/max-detent le 4 diff --git a/Systems/a320-v2527-a5-engine-fadec.xml b/Systems/a320-v2527-a5-engine-fadec.xml index 26c5ee3a..fd6fe741 100644 --- a/Systems/a320-v2527-a5-engine-fadec.xml +++ b/Systems/a320-v2527-a5-engine-fadec.xml @@ -1594,12 +1594,12 @@ fadec/max-detent eq 4 fadec/limit/flex-active eq 1 - fadec/limit/eng-off-wow-switch eq 0 + position/wow eq 0 fadec/max-detent le 4 fadec/limit/flex-active eq 1 - fadec/limit/eng-off-wow-switch eq 1 + position/wow eq 1 fadec/max-detent le 4