File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ public override void Update(float elapsedClockSeconds)
523
523
{
524
524
// WSP dump valve stops
525
525
Car . WheelBrakeSlideProtectionActive = false ;
526
- Car . WheelBrakeSlideProtectionTimerS = 7.0f ; // Reset WSP timer if
526
+ Car . WheelBrakeSlideProtectionTimerS = Car . wheelBrakeSlideTimerResetValueS ; // Reset WSP timer if
527
527
}
528
528
529
529
}
Original file line number Diff line number Diff line change @@ -259,7 +259,8 @@ public float ConvectionFactor
259
259
public bool WheelBrakeSlideProtectionFitted = false ;
260
260
public bool WheelBrakeSlideProtectionActive = false ;
261
261
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 ;
263
264
public bool WheelBrakeSlideProtectionDumpValveLockout = false ;
264
265
265
266
public bool BrakeSkid = false ;
@@ -974,7 +975,7 @@ public virtual void UpdateBrakeSlideCalculation()
974
975
// Reset WSP dump valve lockout
975
976
if ( WheelBrakeSlideProtectionFitted && WheelBrakeSlideProtectionDumpValveLockout && ( ThrottlePercent > 0.01 || AbsSpeedMpS <= 0.002 ) )
976
977
{
977
- WheelBrakeSlideProtectionTimerS = 7 ;
978
+ WheelBrakeSlideProtectionTimerS = wheelBrakeSlideTimerResetValueS ;
978
979
WheelBrakeSlideProtectionDumpValveLockout = false ;
979
980
980
981
}
You can’t perform that action at this time.
0 commit comments