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)
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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments