From 6ef088a948761cc3c07f3b08900914e038ad6bff Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sat, 1 Jul 2017 16:13:53 -0400 Subject: [PATCH] A3XX: FMGC Improved --- Nasal/FMGC.nas | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index cfbc8f76..a40a8560 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -115,7 +115,7 @@ var phasecheck = maketimer(0.2, func { var locarm = getprop("/it-autopilot/output/loc-armed"); var apprarm = getprop("/it-autopilot/output/appr-armed"); - if ((((n1_left >= 85) and (n1_right >= 85)) or (gs > 90 )) and flaps < 4 and (mode == "SRS")) { + if ((((n1_left >= 85) and (n1_right >= 85)) or (gs > 90 )) and (mode == "SRS")) { setprop("/FMGC/status/phase", "1"); setprop("/systems/pressurization/mode", "TO"); } @@ -153,16 +153,22 @@ var phasecheck = maketimer(0.2, func { setprop("/FMGC/status/phase", "2"); } - if ((wowl and wowr) and (gs < 20) and (phase == "2" or phase == "3" or phase == "4" or phase == "5" or phase == "6")) { + if ((wowl and wowr) and (gs < 40) and (phase == "2" or phase == "3" or phase == "4" or phase == "5" or phase == "6")) { setprop("/FMGC/status/phase", "7"); var fd1 = getprop("/it-autoflight/input/fd1"); var fd2 = getprop("/it-autoflight/input/fd2"); + var spd = getprop("/it-autoflight/input/spd-kts"); + var hdg = getprop("/it-autoflight/input/hdg"); + var alt = getprop("/it-autoflight/input/alt"); APinit(); FMGCinit(); mcdu1.MCDU_reset(); mcdu2.MCDU_reset(); setprop("/it-autoflight/input/fd1", fd1); setprop("/it-autoflight/input/fd2", fd2); + setprop("/it-autoflight/input/spd-kts", spd); + setprop("/it-autoflight/input/hdg", hdg); + setprop("/it-autoflight/input/alt", alt); setprop("/systems/pressurization/mode", "GN"); setprop("/systems/pressurization/vs", "0"); setprop("/systems/pressurization/targetvs", "0");