1
0
Fork 0

Bugfix: cruise-fl is in flight levels, not feet

This commit is contained in:
legoboyvdlp R 2020-04-18 21:58:39 +01:00 committed by Jonathan Redpath
parent 4af7f0faf0
commit 090ed7e5f4

View file

@ -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");
}