From d0edc52772c46e68e9408b675e84d3c7fdf0d2f7 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sat, 27 May 2017 15:11:48 -0400 Subject: [PATCH] fix bug in FMGC: MCDU/FMGC/AP system not resetting after landing --- Nasal/FMGC.nas | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index 10515438..6c71273e 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -106,12 +106,14 @@ var phasecheck = maketimer(0.2, func { } if ((wowl and wowr) and (gs < 20) and (phase == "5")) { setprop("/FMGC/status/phase", "7"); - settimer(func { - itaf.ap_init(); - FMGCinit(); - mcdu1.MCDU_reset(); - mcdu2.MCDU_reset(); - }, 20); + var fd1 = getprop("/it-autoflight/input/fd1"); + var fd2 = getprop("/it-autoflight/input/fd2"); + itaf.ap_init(); + FMGCinit(); + mcdu1.MCDU_reset(); + mcdu2.MCDU_reset(); + setprop("/it-autoflight/input/fd1", fd1); + setprop("/it-autoflight/input/fd2", fd2); } });