From ef52e6a2423ab49301ccaa1533a0dd7ac8bd089a Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 15 Mar 2019 23:23:30 -0400 Subject: [PATCH] System: Fix severe FADEC limit bug --- Nasal/fadec-common.nas | 2 +- revision.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/fadec-common.nas b/Nasal/fadec-common.nas index 9cb08221..3f1cca37 100644 --- a/Nasal/fadec-common.nas +++ b/Nasal/fadec-common.nas @@ -222,7 +222,7 @@ var thrust_loop = maketimer(0.04, func { gs = getprop("/velocities/groundspeed-kt"); if (getprop("/FMGC/internal/flex-set") == 1 and getprop("/systems/fadec/n1mode1") == 0 and getprop("/systems/fadec/n1mode2") == 0 and getprop("/gear/gear[1]/wow") == 1 and getprop("/gear/gear[2]/wow") == 1 and gs < 40) { setprop("/systems/thrust/lim-flex", 1); - } else if (getprop("/FMGC/internal/flex-set") == 0 and engstate1 != 3 and engstate2 != 3) { + } else if (getprop("/FMGC/internal/flex-set") == 0 or engstate1 != 3 or engstate2 != 3) { setprop("/systems/thrust/lim-flex", 0); } if (getprop("/controls/engines/engine[0]/reverser") == "1" or getprop("/controls/engines/engine[1]/reverser") == "1") { diff --git a/revision.txt b/revision.txt index 81bbe608..dff7f069 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4780 \ No newline at end of file +4781 \ No newline at end of file