Control: AP: He do not engage below 100ft, fixes #38
This commit is contained in:
parent
9d176ec644
commit
18f868a0c2
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
4655
|
||||
4656
|
Reference in a new issue