FMGC: Fix autopilot ignoring altitude target in G/A SRS mode
This commit is contained in:
parent
b69c83a545
commit
ae235b244c
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
24
|
||||
25
|
Loading…
Reference in a new issue