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:
@@ -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()};
|
||||
|
||||
Reference in New Issue
Block a user