From 3403b3994971156f6e250fd6db540a2a5de6813e Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 21 Jul 2017 17:33:14 -0400 Subject: [PATCH 1/3] A3XX: Another MCDU Bugfix --- Nasal/MCDU2/MCDU.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/MCDU2/MCDU.nas b/Nasal/MCDU2/MCDU.nas index 293a5159..bf2523cb 100644 --- a/Nasal/MCDU2/MCDU.nas +++ b/Nasal/MCDU2/MCDU.nas @@ -286,7 +286,7 @@ var pagebutton = func(btn) { } else if (getprop("/FMGC/status/phase") == 3) { setprop("/MCDU[1]/page", "CRZ"); } else if (getprop("/FMGC/status/phase") == 4) { - setprop("/MCDU[0]/page", "DES"); + setprop("/MCDU[1]/page", "DES"); } } else if (btn == "init") { setprop("/MCDU[1]/page", "INITA"); From 4bc1a88e7ceb8084373b26e11955481bef4da93a Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 21 Jul 2017 17:37:45 -0400 Subject: [PATCH 2/3] A3XX: FMGC: Fix Stuck LAT lights on FCU --- Nasal/FMGC-b.nas | 1 + 1 file changed, 1 insertion(+) diff --git a/Nasal/FMGC-b.nas b/Nasal/FMGC-b.nas index 9dc956ee..711392da 100644 --- a/Nasal/FMGC-b.nas +++ b/Nasal/FMGC-b.nas @@ -510,6 +510,7 @@ var latarms = func { if (getprop("/position/gear-agl-ft") >= 20) { if (getprop("/it-autoflight/input/lat-arm") == 1) { setprop("/it-autoflight/input/lat", getprop("/it-autoflight/input/lat-arm")); + setprop("/it-autoflight/input/lat-arm", 0); } } } From c45209e74a7aedb74c4fe3167f06f5f88846ab76 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 21 Jul 2017 18:13:10 -0400 Subject: [PATCH 3/3] A3XX: Fix FMGC decel bug --- Nasal/FMGC.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index 83d2e729..25d407c7 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -224,7 +224,7 @@ var phasecheck = maketimer(0.2, func { if (getprop("/autopilot/route-manager/route/num") > 0 and getprop("/autopilot/route-manager/active") == 1 and getprop("/autopilot/route-manager/distance-remaining-nm") <= 15) { setprop("/FMGC/internal/decel", 1); - } else { + } else if (getprop("/FMGC/internal/decel") == 1 and phase != 5) { setprop("/FMGC/internal/decel", 0); }