Skip to content

Commit 1ade99e

Browse files
committed
Disable triple valve inhibition if emergency braking is detected
1 parent 14c132b commit 1ade99e

File tree

1 file changed

+9
-2
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS

1 file changed

+9
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS/EPBrakeSystem.cs

+9-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,15 @@ public override void Update(float elapsedClockSeconds)
134134
}
135135
if (EPBrakeActiveInhibitsTripleValve)
136136
{
137-
HoldingValve = ValveState.Release;
138-
IsolationValve = ValveState.Lap;
137+
if (TripleValveState != ValveState.Emergency)
138+
{
139+
HoldingValve = ValveState.Release;
140+
IsolationValve = ValveState.Lap;
141+
}
142+
else
143+
{
144+
IsolationValve = ValveState.Release;
145+
}
139146
}
140147

141148
base.Update(elapsedClockSeconds); // Allow processing of other valid tokens

0 commit comments

Comments
 (0)