From 090ed7e5f4daa55eb5b1b0c25a1a9230515b0880 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 18 Apr 2020 21:58:39 +0100 Subject: [PATCH] Bugfix: cruise-fl is in flight levels, not feet --- Nasal/FMGC/FMGC.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/FMGC/FMGC.nas b/Nasal/FMGC/FMGC.nas index 3a28203a..6ba756a3 100644 --- a/Nasal/FMGC/FMGC.nas +++ b/Nasal/FMGC/FMGC.nas @@ -243,13 +243,13 @@ var masterFMGC = maketimer(0.2, func { setprop("systems/pressurization/mode", "CR"); } - if (crzFl >= 20000) { + if (crzFl >= 200) { if ((phase == 2 or phase == 3) and (flightPlanController.arrivalDist <= 200 or altSel < 20000)) { setprop("FMGC/status/phase", 4); setprop("systems/pressurization/mode", "DE"); } } else { - if ((phase == 2 or phase == 3) and (flightPlanController.arrivalDist <= 200 or altSel < crzFl)) { # todo - not sure about crzFl condition, investigate what happens! + if ((phase == 2 or phase == 3) and (flightPlanController.arrivalDist <= 200 or altSel < (crzFl * 100))) { # todo - not sure about crzFl condition, investigate what happens! setprop("FMGC/status/phase", 4); setprop("systems/pressurization/mode", "DE"); }