From f9b5d7229003c1414945df732c1d10a3693dfed1 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Wed, 23 Aug 2017 18:58:37 -0400 Subject: [PATCH] A3XX: Fix FMGC phase bug --- Nasal/FMGC.nas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index 59efae0d..c2fee327 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -202,7 +202,7 @@ var phasecheck = maketimer(0.2, func { apprarm = getprop("/it-autopilot/output/appr-armed"); gear0 = getprop("/gear/gear[0]/wow"); - if ((((n1_left >= 85) and (n1_right >= 85)) or (gs > 90 )) and (mode == "SRS") and gear0 == 1 and phase == 0) { + if ((((n1_left >= 70) and (n1_right >= 70)) or (gs > 90)) and (mode == "SRS") and gear0 == 1 and phase == 0) { setprop("/FMGC/status/phase", "1"); setprop("/systems/pressurization/mode", "TO"); } @@ -211,12 +211,12 @@ var phasecheck = maketimer(0.2, func { setprop("/FMGC/status/phase", "2"); } - if (alt >= cruiseft_b and phase == "2" and (mode == "ALT" or mode == mode == "ALT*" or mode == "ALT CRZ")) { + if (alt >= cruiseft_b and phase == "2" and (mode == "ALT" or mode == "ALT*" or mode == "ALT CRZ")) { setprop("/FMGC/status/phase", "3"); setprop("/systems/pressurization/mode", "CR"); } - if (alt <= cruiseft and (mode == "DES" or mode == "OP DES") and phase == "3") { + if (alt <= cruiseft and (mode == "DES" or mode == "OP DES") and (phase == "2" or phase == "3")) { setprop("/FMGC/status/phase", "4"); setprop("/systems/pressurization/mode", "DE"); }