Skip to content

Commit

Permalink
Update EngineControl.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Taz5150 committed Sep 21, 2023
1 parent d4c1dac commit b6d1aa5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions fbw-a32nx/src/wasm/fadec_a320/src/EngineControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

//--------------------------------------------
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1305,4 +1307,4 @@ class EngineControl {
}
};

EngineControl EngineControlInstance;
EngineControl EngineControlInstance;

0 comments on commit b6d1aa5

Please sign in to comment.