Fix TO/LDG MEMO wierdness
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
0c8ba2fa8f
commit
ccb12b86e1
1 changed files with 3 additions and 3 deletions
|
@ -136,14 +136,14 @@ var phaseLoop = func() {
|
||||||
|
|
||||||
if (eng == "IAE") {
|
if (eng == "IAE") {
|
||||||
eprlim = getprop("controls/engines/epr-limit");
|
eprlim = getprop("controls/engines/epr-limit");
|
||||||
if ((!getprop("controls/engines/engine[0]/reverser") and !getprop("controls/engines/engine[1]/reverser")) and (((pts.Controls.Engines.Engine1.throttle.getValue() >= 0.8 or pts.Controls.Engines.Engine2.throttle.getValue() >= 0.8) and pts.PTSSystems.Thrust.flex.getBoolValue()) or (pts.Controls.Engines.Engine1.throttle.getValue() == 1.0 or pts.Controls.Engines.Engine2.throttle.getValue() == 1.0))) {
|
if ((!getprop("controls/engines/engine[0]/reverser") and !getprop("controls/engines/engine[1]/reverser")) and (((pts.Controls.Engines.Engine1.throttle.getValue() >= 0.78 or pts.Controls.Engines.Engine2.throttle.getValue() >= 0.78) and pts.PTSSystems.Thrust.flex.getBoolValue()) or (pts.Controls.Engines.Engine1.throttle.getValue() == 1.0 or pts.Controls.Engines.Engine2.throttle.getValue() == 1.0))) {
|
||||||
FWC.toPower.setBoolValue(1);
|
FWC.toPower.setBoolValue(1);
|
||||||
} else {
|
} else {
|
||||||
FWC.toPower.setBoolValue(0);
|
FWC.toPower.setBoolValue(0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
n1lim = getprop("controls/engines/n1-limit");
|
n1lim = getprop("controls/engines/n1-limit");
|
||||||
if ((!getprop("controls/engines/engine[0]/reverser") and !getprop("controls/engines/engine[1]/reverser")) and (((pts.Controls.Engines.Engine1.throttle.getValue() >= 0.8 or pts.Controls.Engines.Engine2.throttle.getValue() >= 0.8) and pts.PTSSystems.Thrust.flex.getBoolValue()) or (pts.Controls.Engines.Engine1.throttle.getValue() == 1.0 or pts.Controls.Engines.Engine2.throttle.getValue() == 1.0))) {
|
if ((!getprop("controls/engines/engine[0]/reverser") and !getprop("controls/engines/engine[1]/reverser")) and (((pts.Controls.Engines.Engine1.throttle.getValue() >= 0.78 or pts.Controls.Engines.Engine2.throttle.getValue() >= 0.78) and pts.PTSSystems.Thrust.flex.getBoolValue()) or (pts.Controls.Engines.Engine1.throttle.getValue() == 1.0 or pts.Controls.Engines.Engine2.throttle.getValue() == 1.0))) {
|
||||||
FWC.toPower.setBoolValue(1);
|
FWC.toPower.setBoolValue(1);
|
||||||
} else {
|
} else {
|
||||||
FWC.toPower.setBoolValue(0);
|
FWC.toPower.setBoolValue(0);
|
||||||
|
@ -281,4 +281,4 @@ setlistener("/ECAM/buttons/recall-btn", func() {
|
||||||
|
|
||||||
var clrBtn = func(btn) {
|
var clrBtn = func(btn) {
|
||||||
FWC.Btn.clr.setValue(btn);
|
FWC.Btn.clr.setValue(btn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue