A3XX: Fix BAD TYPO in Speed control knob -- fix a bug

This commit is contained in:
Joshua Davidson 2017-07-21 18:42:20 -04:00
parent 8bad04cf34
commit 1dd9db5971

View file

@ -67,11 +67,11 @@ var mcpSPDKnbPull = func {
}
} else if (getprop("/it-autoflight/input/kts-mach") == 1) {
if (mach >= 0.50 and mach <= 0.95) {
setprop("/it-autoflight/input/spd-kts", math.round(mach, 0.001));
setprop("/it-autoflight/input/spd-mach", math.round(mach, 0.001));
} else if (mach < 0.50) {
setprop("/it-autoflight/input/spd-kts", 0.50);
setprop("/it-autoflight/input/spd-mach", 0.50);
} else if (mach > 0.95) {
setprop("/it-autoflight/input/spd-kts", 0.95);
setprop("/it-autoflight/input/spd-mach", 0.95);
}
}
}