From b6d1aa5441e369cbd83ca5430731108b31421f37 Mon Sep 17 00:00:00 2001 From: Taz5150 <70781153+Taz5150@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:35:41 +0200 Subject: [PATCH] Update EngineControl.h --- .../src/wasm/fadec_a320/src/EngineControl.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/fbw-a32nx/src/wasm/fadec_a320/src/EngineControl.h b/fbw-a32nx/src/wasm/fadec_a320/src/EngineControl.h index 2ada802dea9..e38be330ff8 100644 --- a/fbw-a32nx/src/wasm/fadec_a320/src/EngineControl.h +++ b/fbw-a32nx/src/wasm/fadec_a320/src/EngineControl.h @@ -824,14 +824,14 @@ class EngineControl { // isTankClosed = 3, left & right tanks do not supply fuel // isTankClosed = 4, both tanks supply fuel if (xFeedValve > 0.0) { - isTankClosed = 4; - if (leftPump1 == 0 && leftPump2 == 0) - isTankClosed = 1; - if (rightPump1 == 0 && rightPump2 == 0) - isTankClosed = 2; if (leftPump1 == 0 && leftPump2 == 0 && rightPump1 == 0 && rightPump2 == 0) isTankClosed = 3; - + else if (leftPump1 == 0 && leftPump2 == 0) + isTankClosed = 1; + else if (rightPump1 == 0 && rightPump2 == 0) + isTankClosed = 2; + else + isTankClosed = 4; } //-------------------------------------------- @@ -897,6 +897,8 @@ class EngineControl { case 3: fuelBurn1 = 0; fuelBurn2 = 0; + apuBurn1 = apuFuelConsumption * 0.5; + apuBurn2 = apuFuelConsumption * 0.5; break; case 4: apuBurn1 = apuFuelConsumption*0.5; @@ -1305,4 +1307,4 @@ class EngineControl { } }; -EngineControl EngineControlInstance; \ No newline at end of file +EngineControl EngineControlInstance;