1
0
Fork 0

FMGC: Fix autopilot ignoring altitude target in G/A SRS mode

This commit is contained in:
Josh Davidson 2020-04-20 20:50:22 -04:00
parent b69c83a545
commit ae235b244c
2 changed files with 2 additions and 2 deletions

View file

@ -303,7 +303,7 @@ var ITAF = {
Internal.altTemp = Internal.alt.getValue();
Internal.altDiff = Internal.altTemp - Position.indicatedAltitudeFtTemp;
if (Output.vertTemp != 0 and Output.vertTemp != 2 and Output.vertTemp != 6 and Output.vertTemp != 9 and Text.vertTemp != "G/A CLB") {
if (Output.vertTemp != 0 and Output.vertTemp != 2 and Output.vertTemp != 6 and Output.vertTemp != 9) {
Internal.captVS = math.clamp(math.round(abs(Internal.vs.getValue()) / 5, 100), 50, 2500); # Capture limits
Custom.apFdOn = Output.ap1Temp or Output.ap2Temp or Output.fd1.getBoolValue() or Output.fd2.getBoolValue();
if (abs(Internal.altDiff) <= Internal.captVS and !Gear.wow1Temp and !Gear.wow2Temp and Custom.apFdOn) {

View file

@ -1 +1 @@
24
25