Skip to content

Commit 67c67f1

Browse files
committed
Temporary alteration to adhesion calculation
1 parent 944f427 commit 67c67f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,7 @@ public virtual void UpdateFrictionCoefficient(float elapsedClockSeconds)
30263026

30273027

30283028
// Test to see if loco wheel is slipping or skidding due to brake application
3029-
if (WheelSlip && ((ThrottlePercent > 0.2f && !BrakeSkid) || (ThrottlePercent < 0.1f && BrakeSkid)))
3029+
if ((EngineType == EngineTypes.Steam && SteamEngineType != MSTSSteamLocomotive.SteamEngineTypes.Geared) && WheelSlip && ((ThrottlePercent > 0.2f && !BrakeSkid) || (ThrottlePercent < 0.1f && BrakeSkid)))
30303030
{
30313031

30323032
WheelStopSlipTimeS = 0; // Reset stop slip time if wheel slip starts
@@ -3051,7 +3051,7 @@ public virtual void UpdateFrictionCoefficient(float elapsedClockSeconds)
30513051
{
30523052
WheelSlipTimeS = 0; // Reset slip time if wheel slip stops
30533053

3054-
if (SlipFrictionCoefficientFactor < BaseFrictionCoefficientFactor && SlipFrictionCoefficientFactor != 0) // Once these two are equal then assume that wheels have stopped slipping.
3054+
if ((EngineType == EngineTypes.Steam && SteamEngineType != MSTSSteamLocomotive.SteamEngineTypes.Geared) && SlipFrictionCoefficientFactor < BaseFrictionCoefficientFactor && SlipFrictionCoefficientFactor != 0) // Once these two are equal then assume that wheels have stopped slipping.
30553055
{
30563056
// Trace.TraceInformation("SlipFriction {0} Base {1}", SlipFrictionCoefficientFactor, BaseFrictionCoefficientFactor);
30573057
// Exponential curve is used to transition between dynamic friction and static friction when wheel stops slipping

0 commit comments

Comments
 (0)