From 58b3ef425784da6755c99ffa581392ecac4f71c5 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 27 Nov 2018 12:23:46 -0500 Subject: [PATCH 1/2] Sim: Revision fix --- revision.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revision.txt b/revision.txt index ecd2cbdf..0a3a8672 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4704 \ No newline at end of file +4705 \ No newline at end of file From 9e12238b9b7de13109b4be3eff1d47e77e853059 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Wed, 5 Dec 2018 14:30:26 +0000 Subject: [PATCH 2/2] Bugfix: setlistener() on engine throttle called at framerate. Now only called if the value changes --- Nasal/fadec-common.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/fadec-common.nas b/Nasal/fadec-common.nas index a482ee99..c4b5403c 100644 --- a/Nasal/fadec-common.nas +++ b/Nasal/fadec-common.nas @@ -119,7 +119,7 @@ setlistener("/controls/engines/engine[0]/throttle-pos", func { } setprop("/controls/engines/engine[0]/throttle-fdm", 0.99); } -}); +}, 0, 0); setlistener("/controls/engines/engine[1]/throttle-pos", func { engstate1 = getprop("/engines/engine[0]/state"); @@ -180,7 +180,7 @@ setlistener("/controls/engines/engine[1]/throttle-pos", func { } setprop("/controls/engines/engine[1]/throttle-fdm", 0.99); } -}); +}, 0, 0); # Alpha Floor and Toga Lock setlistener("/it-autoflight/input/athr", func {