1
0
Fork 0

Fix FCU - it wouldn't engage NAV on the last waypoint

This commit is contained in:
Jonathan Redpath 2022-05-16 16:02:44 +01:00
parent e45101b03f
commit 763b12c26c

View file

@ -263,7 +263,7 @@ var FCUController = {
HDGPush: func() {
if (me.FCUworking) {
if (fmgc.Output.fd1.getBoolValue() or fmgc.Output.fd2.getBoolValue() or fmgc.Output.ap1.getBoolValue() or fmgc.Output.ap2.getBoolValue()) {
var wp = fmgc.flightPlanController.flightplans[2].getWP(fmgc.flightPlanController.currentToWptIndex.getValue() + 1);
var wp = fmgc.flightPlanController.flightplans[2].getWP(fmgc.flightPlanController.currentToWptIndex.getValue());
if (wp != nil and wp.wp_type != "discontinuity") {
fmgc.Input.lat.setValue(1);
}