A3XX: Fix FMGC bug, #99

This commit is contained in:
Joshua Davidson 2017-11-24 21:45:58 -05:00
parent 31f9efe142
commit e910c6daad
2 changed files with 7 additions and 2 deletions

View file

@ -228,7 +228,12 @@ var phasecheck = maketimer(0.2, func {
setprop("/systems/pressurization/mode", "TO"); setprop("/systems/pressurization/mode", "TO");
} }
if ((phase == 1 or phase == 3 or phase == 4 or phase == 5 or phase == 6) and (mode == "OP CLB" or mode == "CLB" or (modeI == "V/S" and getprop("/it-autoflight/input/vs") >= 100) or (modeI == "FPA" and getprop("/it-autoflight/input/fpa") >= 0.1))) { if (phase == 1 and mode != "SRS" and mode != " ") {
setprop("/FMGC/status/phase", "2");
setprop("/systems/pressurization/mode", "TO");
}
if ((phase == 3 or phase == 4 or phase == 5 or phase == 6) and (mode == "OP CLB" or mode == "CLB" or (modeI == "V/S" and getprop("/it-autoflight/input/vs") >= 100) or (modeI == "FPA" and getprop("/it-autoflight/input/fpa") >= 0.1))) {
setprop("/FMGC/status/phase", "2"); setprop("/FMGC/status/phase", "2");
setprop("/systems/pressurization/mode", "TO"); setprop("/systems/pressurization/mode", "TO");
} }

View file

@ -1 +1 @@
4031 4032