FMGC: Fix managed speed refusing to accelerate to 250
This commit is contained in:
parent
fa208ca414
commit
38094fce3a
1 changed files with 6 additions and 1 deletions
|
@ -991,7 +991,12 @@ var ManagedSPD = maketimer(0.25, func {
|
|||
}
|
||||
} elsif ((FMGCInternal.phase == 2 or FMGCInternal.phase == 3) and altitude > (FMGCInternal.clbSpdLimAlt + 20)) {
|
||||
FMGCInternal.mngKtsMach = FMGCInternal.machSwitchover ? 1 : 0;
|
||||
FMGCInternal.mngSpdCmd = FMGCInternal.machSwitchover ? math.min(mng_alt_mach, ktsToMach(constraintSpeed)) : math.min(mng_alt_spd, constraintSpeed);
|
||||
|
||||
if (constraintSpeed != nil and constraintSpeed != 0) {
|
||||
FMGCInternal.mngSpdCmd = FMGCInternal.machSwitchover ? math.min(mng_alt_mach, ktsToMach(constraintSpeed)) : math.min(mng_alt_spd, constraintSpeed);
|
||||
} else {
|
||||
FMGCInternal.mngSpdCmd = FMGCInternal.machSwitchover ? mng_alt_mach : mng_alt_spd;
|
||||
}
|
||||
} elsif ((FMGCInternal.phase >= 4 and FMGCInternal.phase <= 6) and altitude > (FMGCInternal.desSpdLimAlt + 20)) {
|
||||
if (FMGCInternal.decel) {
|
||||
FMGCInternal.mngKtsMach = 0;
|
||||
|
|
Loading…
Reference in a new issue