FADEC: Fix FLX inhibited with engines off
This commit is contained in:
parent
a6fbe86b2e
commit
b1cd528cd3
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1133,12 +1133,12 @@
|
|||
<test logic="AND" value="3"> <!-- FLX -->
|
||||
fadec/max-detent eq 4
|
||||
fadec/limit/flex-active eq 1
|
||||
fadec/limit/eng-off-wow-switch eq 0
|
||||
position/wow eq 0
|
||||
</test>
|
||||
<test logic="AND" value="3"> <!-- FLX -->
|
||||
fadec/max-detent le 4
|
||||
fadec/limit/flex-active eq 1
|
||||
fadec/limit/eng-off-wow-switch eq 1
|
||||
position/wow eq 1
|
||||
</test>
|
||||
<test logic="AND" value="1"> <!-- MCT -->
|
||||
fadec/max-detent le 4
|
||||
|
|
|
@ -1594,12 +1594,12 @@
|
|||
<test logic="AND" value="3"> <!-- FLX -->
|
||||
fadec/max-detent eq 4
|
||||
fadec/limit/flex-active eq 1
|
||||
fadec/limit/eng-off-wow-switch eq 0
|
||||
position/wow eq 0
|
||||
</test>
|
||||
<test logic="AND" value="3"> <!-- FLX -->
|
||||
fadec/max-detent le 4
|
||||
fadec/limit/flex-active eq 1
|
||||
fadec/limit/eng-off-wow-switch eq 1
|
||||
position/wow eq 1
|
||||
</test>
|
||||
<test logic="AND" value="1"> <!-- MCT -->
|
||||
fadec/max-detent le 4
|
||||
|
|
Loading…
Add table
Reference in a new issue