This commit is contained in:
Jonathan Redpath 2018-12-07 17:52:42 +00:00
parent dcc9718a30
commit 53fc5be5eb
5 changed files with 7 additions and 7 deletions

View file

@ -4056,7 +4056,7 @@
<binding>
<command>nasal</command>
<script>if (getprop("/it-autoflight/output/ap1") == 0) {
libraries.apOff("hard","L");
libraries.apOff("hard",1);
}
</script>
</binding>
@ -4096,7 +4096,7 @@
<binding>
<command>nasal</command>
<script>if (getprop("/it-autoflight/output/ap1") == 0) {
libraries.apOff("hard","R");
libraries.apOff("hard",2);
}
</script>
</binding>

View file

@ -640,7 +640,7 @@ var ap_various = func {
if (getprop("/controls/flight/aileron") > 0.2 or getprop("/controls/flight/aileron") < -0.2 or getprop("/controls/flight/elevator") > 0.2 or getprop("/controls/flight/elevator") < -0.2) {
setprop("/it-autoflight/input/ap1", 0);
setprop("/it-autoflight/input/ap2", 0);
libraries.apOff("hard", "B");
libraries.apOff("hard", 0);
}
}
}

View file

@ -253,7 +253,7 @@ var decreaseManVS = func {
}
var apOff = func(type, side) {
if ((side == "L" and getprop("/it-autoflight/output/ap1") == 1) or (side == "R" and getprop("/it-autoflight/output/ap2") == 1)) {
if ((side == 1 and getprop("/it-autoflight/output/ap1") == 1) or (side == 2 and getprop("/it-autoflight/output/ap2") == 1)) {
setprop("/it-autoflight/output/ap-warning", 0);
return;
}

View file

@ -216,7 +216,7 @@ var update_loop = func {
if (getprop("/it-autoflight/output/ap2") == 1) {
setprop("/it-autoflight/input/ap2", 0);
}
libraries.apOff("hard", "B");
libraries.apOff("hard", 0);
} else {
if (getprop("/it-fbw/protections/overspeed") != 0) {
setprop("/it-fbw/protections/overspeed", 0);

View file

@ -58,7 +58,7 @@
</binding>
<binding>
<command>nasal</command>
<script>libraries.apOff("hard","L");</script>
<script>libraries.apOff("hard",1);</script>
</binding>
</button>
<button>
@ -70,7 +70,7 @@
</binding>
<binding>
<command>nasal</command>
<script>libraries.apOff("hard","R");</script>
<script>libraries.apOff("hard",2);</script>
</binding>
</button>
<button>