From e910c6daad4372c4c2c73a7b33ae470fe3b87eac Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 24 Nov 2017 21:45:58 -0500 Subject: [PATCH] A3XX: Fix FMGC bug, #99 --- Nasal/FMGC.nas | 7 ++++++- revision.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index f15d1ddd..54932978 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -228,7 +228,12 @@ var phasecheck = maketimer(0.2, func { 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("/systems/pressurization/mode", "TO"); } diff --git a/revision.txt b/revision.txt index f0d50fd5..06b9789a 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4031 \ No newline at end of file +4032 \ No newline at end of file