From 18f868a0c2a8a1788b37ffdd46b2802bdfd37dbe Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 28 Sep 2018 14:54:44 -0400 Subject: [PATCH] Control: AP: He do not engage below 100ft, fixes #38 --- Nasal/FMGC-b.nas | 4 ++-- revision.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/FMGC-b.nas b/Nasal/FMGC-b.nas index 8de3b2a7..14a3f777 100644 --- a/Nasal/FMGC-b.nas +++ b/Nasal/FMGC-b.nas @@ -110,7 +110,7 @@ setlistener("/it-autoflight/input/ap1", func { fmabox(); updateTimers(); } else if (apmas == 1 and ac_ess >= 110 and law == 0) { - if ((getprop("/gear/gear[1]/wow") == 0) and (getprop("/gear/gear[2]/wow") == 0)) { + if (getprop("/gear/gear[1]/wow") == 0 and getprop("/gear/gear[2]/wow") == 0 and getprop("/position/gear-agl-ft") >= 100) { if (getprop("/it-autoflight/output/lat") == 9) { setprop("/it-autoflight/input/lat", 3); } @@ -146,7 +146,7 @@ setlistener("/it-autoflight/input/ap2", func { fmabox(); updateTimers(); } else if (apmas == 1 and ac_ess >= 110 and law == 0) { - if ((getprop("/gear/gear[1]/wow") == 0) and (getprop("/gear/gear[2]/wow") == 0)) { + if (getprop("/gear/gear[1]/wow") == 0 and getprop("/gear/gear[2]/wow") == 0 and getprop("/position/gear-agl-ft") >= 100) { if (getprop("/it-autoflight/output/lat") == 9) { setprop("/it-autoflight/input/lat", 3); } diff --git a/revision.txt b/revision.txt index 032fb5c3..da61b691 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4655 \ No newline at end of file +4656 \ No newline at end of file