From ab5ad1cd69fa680c0c69c84070aadcc962248e4a Mon Sep 17 00:00:00 2001 From: Joshua Davidson <joshuadavidson2000@gmail.com> Date: Thu, 26 Oct 2017 14:59:38 -0400 Subject: [PATCH] A3XX: Fix SRS disengaging at liftoff --- Nasal/PFD_FMA.nas | 4 ++-- revision.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/PFD_FMA.nas b/Nasal/PFD_FMA.nas index 97cf03ec..c6a8425d 100644 --- a/Nasal/PFD_FMA.nas +++ b/Nasal/PFD_FMA.nas @@ -107,9 +107,9 @@ var loopFMA = maketimer(0.05, func { var thr1 = getprop("/controls/engines/engine[0]/throttle-pos"); var thr2 = getprop("/controls/engines/engine[1]/throttle-pos"); var wow = getprop("/gear/gear[0]/wow"); - if (wow and ((state1 == "TOGA" or state2 == "TOGA") or (flx == 1 and (state1 == "MCT" or state2 == "MCT")) or (flx == 1 and ((state1 == "MAN THR" and thr1 >= 0.83) or (state2 == "MAN THR" and thr2 >= 0.83))))) { + if ((state1 == "TOGA" or state2 == "TOGA") or (flx == 1 and (state1 == "MCT" or state2 == "MCT")) or (flx == 1 and ((state1 == "MAN THR" and thr1 >= 0.83) or (state2 == "MAN THR" and thr2 >= 0.83)))) { # RWY Engagement would go here, but automatic ILS selection is not simulated yet. - if (getprop("/FMGC/internal/v2-set") == 1 and getprop("/it-autoflight/output/vert") != 7) { + if (wow and getprop("/FMGC/internal/v2-set") == 1 and getprop("/it-autoflight/output/vert") != 7) { setprop("/it-autoflight/input/vert", 7); setprop("/it-autoflight/mode/vert", "T/O CLB"); fmgc.vertical(); diff --git a/revision.txt b/revision.txt index 966f6062..43e6c337 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -3015 \ No newline at end of file +3016 \ No newline at end of file