From e418ca7634f8e7835f458c9e6ecc5b63a3da40f7 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 8 Dec 2017 13:51:05 -0500 Subject: [PATCH 1/2] A3XX: FADEC: Fix MAN MCT showing up for a split second before MAN FLEX --- Nasal/fadec-common.nas | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Nasal/fadec-common.nas b/Nasal/fadec-common.nas index 7ceaff98..58d0f663 100644 --- a/Nasal/fadec-common.nas +++ b/Nasal/fadec-common.nas @@ -49,6 +49,7 @@ setlistener("/sim/signals/fdm-initialized", func { var flaps = getprop("/controls/flight/flap-pos"); var alphaProtSpd = getprop("/FMGC/internal/alpha-prot-speed"); var gs = getprop("/velocities/groundspeed-kt"); + thrust_lim.start(); thrustt.start(); }); @@ -192,7 +193,7 @@ var atoff_request = func { } } -var thrust_lim = func { +var thrust_lim = maketimer(0.04, func { state1 = getprop("/systems/thrust/state1"); state2 = getprop("/systems/thrust/state2"); engstate1 = getprop("/engines/engine[0]/state"); @@ -250,7 +251,7 @@ var thrust_lim = func { setprop("/controls/engines/epr-limit", eprtoga); setprop("/controls/engines/n1-limit", n1toga); } -} +}); var unflex = func { state1 = getprop("/systems/thrust/state1"); @@ -264,8 +265,6 @@ var thrust_loop = func { state1 = getprop("/systems/thrust/state1"); state2 = getprop("/systems/thrust/state2"); - thrust_lim(); - if (getprop("/gear/gear[1]/wow") == 0 and getprop("/gear/gear[2]/wow") == 0 and (getprop("/engines/engine[0]/state") != 3 or getprop("/engines/engine[1]/state") != 3)) { setprop("/systems/thrust/eng-out", 1); } else { From 7d66644f878c760faae86db6b754031d28e8a481 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 8 Dec 2017 13:51:52 -0500 Subject: [PATCH 2/2] A32X: Revision --- revision.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revision.txt b/revision.txt index 8e0f03b2..ddeca210 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4063 \ No newline at end of file +4065 \ No newline at end of file