18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 20:09:14 +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

@@ -628,7 +628,7 @@ class TESt : public TBrake
/// <param name="BCP">Brake cylinder (or impulse-chamber) pressure for <see cref="BVs"/>.</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 FillBrakeRes(double BCP, double dt); // napelnianie pomocniczego z rozdzielacza
double FillBrakeRes(double BCP, double dt) const; // napelnianie pomocniczego z rozdzielacza
/// <summary>Vents the valve, brake and control reservoirs to zero.</summary>
void ForceEmptiness() override; // wymuszenie bycia pustym