Skip to content

Commit 166c9d4

Browse files
committed
Add a parameter rather in numerical value
1 parent f81987b commit 166c9d4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public override void Update(float elapsedClockSeconds)
523523
{
524524
// WSP dump valve stops
525525
Car.WheelBrakeSlideProtectionActive = false;
526-
Car.WheelBrakeSlideProtectionTimerS = 7.0f; // Reset WSP timer if
526+
Car.WheelBrakeSlideProtectionTimerS = Car.wheelBrakeSlideTimerResetValueS; // Reset WSP timer if
527527
}
528528

529529
}

Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ public float ConvectionFactor
259259
public bool WheelBrakeSlideProtectionFitted = false;
260260
public bool WheelBrakeSlideProtectionActive = false;
261261
public bool WheelBrakeSlideProtectionLimitDisabled = false;
262-
public float WheelBrakeSlideProtectionTimerS = 7;
262+
public float wheelBrakeSlideTimerResetValueS = 7.0f; // Set wsp time to 7 secs
263+
public float WheelBrakeSlideProtectionTimerS = 7.0f;
263264
public bool WheelBrakeSlideProtectionDumpValveLockout = false;
264265

265266
public bool BrakeSkid = false;
@@ -974,7 +975,7 @@ public virtual void UpdateBrakeSlideCalculation()
974975
// Reset WSP dump valve lockout
975976
if (WheelBrakeSlideProtectionFitted && WheelBrakeSlideProtectionDumpValveLockout && (ThrottlePercent > 0.01 || AbsSpeedMpS <= 0.002))
976977
{
977-
WheelBrakeSlideProtectionTimerS = 7;
978+
WheelBrakeSlideProtectionTimerS = wheelBrakeSlideTimerResetValueS;
978979
WheelBrakeSlideProtectionDumpValveLockout = false;
979980

980981
}

0 commit comments

Comments
 (0)