From 34a856cdba3e061798f5c8eb887dadb48c9a2254 Mon Sep 17 00:00:00 2001 From: flogross89 <63071941+flogross89@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:42:48 +0200 Subject: [PATCH] fix(a32nx): FMS: Only check "TO SPEEDS TO LOW" condition if V speeds 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 <98479040+alepouna@users.noreply.github.com> --- .../FlyByWire_A320_Neo/FMC/A32NX_FMCMainDisplay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/FMC/A32NX_FMCMainDisplay.js b/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/FMC/A32NX_FMCMainDisplay.js index 072ca2e3b4c..b4abdbbbdc2 100644 --- a/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/FMC/A32NX_FMCMainDisplay.js +++ b/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/FMC/A32NX_FMCMainDisplay.js @@ -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() {