fix bug in FMGC: MCDU/FMGC/AP system not resetting after landing
This commit is contained in:
parent
1e562b3baa
commit
d0edc52772
1 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in a new issue