1
0
Fork 0

FADEC: Fix FLX inhibited with engines off

This commit is contained in:
Josh Davidson 2022-01-19 19:27:51 -05:00
parent a6fbe86b2e
commit b1cd528cd3
3 changed files with 6 additions and 6 deletions

View file

@ -120,11 +120,11 @@ var FADEC = {
pts.Gear.wowTemp[1] = pts.Gear.wow[1].getValue(); pts.Gear.wowTemp[1] = pts.Gear.wow[1].getValue();
pts.Gear.wowTemp[2] = pts.Gear.wow[2].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()) { if (!me.Limit.flexActive.getBoolValue()) {
me.Limit.flexActive.setBoolValue(1); 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()) { if (me.Limit.flexActive.getBoolValue()) {
me.Limit.flexActive.setBoolValue(0); me.Limit.flexActive.setBoolValue(0);
} }

View file

@ -1133,12 +1133,12 @@
<test logic="AND" value="3"> <!-- FLX --> <test logic="AND" value="3"> <!-- FLX -->
fadec/max-detent eq 4 fadec/max-detent eq 4
fadec/limit/flex-active eq 1 fadec/limit/flex-active eq 1
fadec/limit/eng-off-wow-switch eq 0 position/wow eq 0
</test> </test>
<test logic="AND" value="3"> <!-- FLX --> <test logic="AND" value="3"> <!-- FLX -->
fadec/max-detent le 4 fadec/max-detent le 4
fadec/limit/flex-active eq 1 fadec/limit/flex-active eq 1
fadec/limit/eng-off-wow-switch eq 1 position/wow eq 1
</test> </test>
<test logic="AND" value="1"> <!-- MCT --> <test logic="AND" value="1"> <!-- MCT -->
fadec/max-detent le 4 fadec/max-detent le 4

View file

@ -1594,12 +1594,12 @@
<test logic="AND" value="3"> <!-- FLX --> <test logic="AND" value="3"> <!-- FLX -->
fadec/max-detent eq 4 fadec/max-detent eq 4
fadec/limit/flex-active eq 1 fadec/limit/flex-active eq 1
fadec/limit/eng-off-wow-switch eq 0 position/wow eq 0
</test> </test>
<test logic="AND" value="3"> <!-- FLX --> <test logic="AND" value="3"> <!-- FLX -->
fadec/max-detent le 4 fadec/max-detent le 4
fadec/limit/flex-active eq 1 fadec/limit/flex-active eq 1
fadec/limit/eng-off-wow-switch eq 1 position/wow eq 1
</test> </test>
<test logic="AND" value="1"> <!-- MCT --> <test logic="AND" value="1"> <!-- MCT -->
fadec/max-detent le 4 fadec/max-detent le 4