Skip to content

Commit

Permalink
fix(efcs): fix B hyd condition for ELAC 2 standby elec supply (#8404)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecologne authored Jan 12, 2024
1 parent c600767 commit a7ecc5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1344,10 +1344,10 @@ bool FlyByWireInterface::updateElac(double sampleTime, int elacIndex) {
bool elac2EmerPowersupplyNoseWheelCondition =
elac2EmerPowersupplyNoseGearConditionLatch.update(noseGearNotUplocked, !elac2EmerPowersupplyRelayOutput);

bool blueLowPressure = !idHydBluePressurised->get();
bool blueHighPressure = idHydBluePressurised->get();

bool elac2EmerPowersupplyActive = elac2EmerPowersupplyRelayOutput &&
(elac2EmerPowersupplyTimerRelayOutput || elac2EmerPowersupplyNoseWheelCondition || blueLowPressure);
(elac2EmerPowersupplyTimerRelayOutput || elac2EmerPowersupplyNoseWheelCondition || blueHighPressure);

powerSupplyAvailable = elac2EmerPowersupplyActive ? idElecBat2HotBusPowered->get() : idElecDcBus2Powered->get();
}
Expand Down

0 comments on commit a7ecc5c

Please sign in to comment.