Skip to content

Commit

Permalink
fix(a32nx): FMS: Only check "TO SPEEDS TO LOW" condition if V speeds …
Browse files Browse the repository at this point in the history
…are set (#8768)

* only check "TO SPEEDS TO LOW" condition if V speeds are set

* check TO SPEEDS TOO LOW also after inputting one v speed

* nullish coalescing not allows in js

---------

Co-authored-by: alepouna <[email protected]>
  • Loading branch information
flogross89 and alepouna authored Aug 15, 2024
1 parent fe86af6 commit 34a856c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2695,10 +2695,10 @@ class FMCMainDisplay extends BaseAirliners {

const tow = grossWeight - (this.isAnEngineOn() || this.taxiFuelWeight === undefined ? 0 : this.taxiFuelWeight);

return this.v1Speed < Math.trunc(NXSpeedsUtils.getVmcg(zp))
|| this.vRSpeed < Math.trunc(1.05 * NXSpeedsUtils.getVmca(zp))
|| this.v2Speed < Math.trunc(1.1 * NXSpeedsUtils.getVmca(zp))
|| (isFinite(tow) && this.v2Speed < Math.trunc(1.13 * NXSpeedsUtils.getVs1g(tow, this.flaps, true)));
return ((this.v1Speed == null) ? Infinity : this.v1Speed) < Math.trunc(NXSpeedsUtils.getVmcg(zp))
|| ((this.vRSpeed == null) ? Infinity : this.vRSpeed) < Math.trunc(1.05 * NXSpeedsUtils.getVmca(zp))
|| ((this.v2Speed == null) ? Infinity : this.v2Speed) < Math.trunc(1.1 * NXSpeedsUtils.getVmca(zp))
|| (isFinite(tow) && ((this.v2Speed == null) ? Infinity : this.v2Speed) < Math.trunc(1.13 * NXSpeedsUtils.getVs1g(tow, this.flaps, true)));
}

toSpeedsChecks() {
Expand Down

0 comments on commit 34a856c

Please sign in to comment.