fix bug in FMGC: MCDU/FMGC/AP system not resetting after landing

This commit is contained in:
Joshua Davidson 2017-05-27 15:11:48 -04:00
parent 1e562b3baa
commit d0edc52772

View file

@ -106,12 +106,14 @@ var phasecheck = maketimer(0.2, func {
} }
if ((wowl and wowr) and (gs < 20) and (phase == "5")) { if ((wowl and wowr) and (gs < 20) and (phase == "5")) {
setprop("/FMGC/status/phase", "7"); setprop("/FMGC/status/phase", "7");
settimer(func { var fd1 = getprop("/it-autoflight/input/fd1");
var fd2 = getprop("/it-autoflight/input/fd2");
itaf.ap_init(); itaf.ap_init();
FMGCinit(); FMGCinit();
mcdu1.MCDU_reset(); mcdu1.MCDU_reset();
mcdu2.MCDU_reset(); mcdu2.MCDU_reset();
}, 20); setprop("/it-autoflight/input/fd1", fd1);
setprop("/it-autoflight/input/fd2", fd2);
} }
}); });