From fcd1fd508b4ee8d6824342d53abeb54cae5bed26 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sun, 22 Oct 2017 15:11:31 -0400 Subject: [PATCH] A33X: Fix Managed Speed bugs --- Nasal/FMGC.nas | 8 ++++++++ Systems/fmgc-b.xml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index df21e817..5e15e602 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -454,6 +454,14 @@ var ManagedSPD = maketimer(0.25, func { mng_alt_mach_cmd = getprop("/FMGC/internal/mng-alt-mach"); mng_alt_mach = math.round(mng_alt_mach_cmd, 0.001); + if (mach > mng_alt_mach and (phase == 2 or phase == 3)) { + setprop("/FMGC/internal/mach-switchover", 1); + } + + if (ias > mng_alt_spd and (phase == 4 or phase == 5)) { + setprop("/FMGC/internal/mach-switchover", 0); + } + if ((mode == " " or mode == "SRS") and (phase == 0 or phase == 1)) { if (mngktsmach) { setprop("/FMGC/internal/mng-kts-mach", 0); diff --git a/Systems/fmgc-b.xml b/Systems/fmgc-b.xml index 51c7b9df..87482617 100644 --- a/Systems/fmgc-b.xml +++ b/Systems/fmgc-b.xml @@ -159,7 +159,7 @@ /FMGC/internal/cost-index 01.00 - 1201.14 + 1201.19