18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 19:14:59 +01:00

fix: review of the EN57 EP brake (Sonar null check, EP fuse of the cab car, AI re-asserts the EP brake)

- tests: REQUIRE the brake handle before dereferencing it (Sonar cpp:S2259)
- TESt::FillBrakeRes is const (S5817)
- cab EP brake command: drop the mvControlled->EpFuse check, SwitchEPBrake
  already checks the cab car's (mvOccupied) EP fuse with the control supply
- AI: with the handle already at the EP brake position, switch the EP brake
  on again once the control supply is back
This commit is contained in:
jerrrrycho
2026-11-08 17:37:56 +01:00
parent 87f1d960a0
commit 200d3ae73b
5 changed files with 18 additions and 3 deletions

View File

@@ -977,7 +977,7 @@ double TESt::BVs(double const BCP) const
/// <param name="BCP">Brake cylinder (or impulse-chamber) pressure.</param>
/// <param name="dt">Time step [s].</param>
/// <returns>Volume taken into the auxiliary reservoir, 0.96 of it drawn from the brake pipe.</returns>
double TESt::FillBrakeRes(double const BCP, double const dt)
double TESt::FillBrakeRes(double const BCP, double const dt) const
{
double const BVP{BrakeRes->P()};
double const VVP{ValveRes->P()};