System: Fix severe FADEC limit bug

This commit is contained in:
Joshua Davidson 2019-03-15 23:23:30 -04:00
parent 69374a53b3
commit ef52e6a242
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ var thrust_loop = maketimer(0.04, func {
gs = getprop("/velocities/groundspeed-kt");
if (getprop("/FMGC/internal/flex-set") == 1 and getprop("/systems/fadec/n1mode1") == 0 and getprop("/systems/fadec/n1mode2") == 0 and getprop("/gear/gear[1]/wow") == 1 and getprop("/gear/gear[2]/wow") == 1 and gs < 40) {
setprop("/systems/thrust/lim-flex", 1);
} else if (getprop("/FMGC/internal/flex-set") == 0 and engstate1 != 3 and engstate2 != 3) {
} else if (getprop("/FMGC/internal/flex-set") == 0 or engstate1 != 3 or engstate2 != 3) {
setprop("/systems/thrust/lim-flex", 0);
}
if (getprop("/controls/engines/engine[0]/reverser") == "1" or getprop("/controls/engines/engine[1]/reverser") == "1") {

View file

@ -1 +1 @@
4780
4781