From 763b12c26c914eddd5767317ff1388b53ee6c72b Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Mon, 16 May 2022 16:02:44 +0100 Subject: [PATCH] Fix FCU - it wouldn't engage NAV on the last waypoint --- Nasal/FMGC/FCU.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/FMGC/FCU.nas b/Nasal/FMGC/FCU.nas index 2f91c54c..87f0851c 100644 --- a/Nasal/FMGC/FCU.nas +++ b/Nasal/FMGC/FCU.nas @@ -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); }