Skip to content

Commit c3d05c4

Browse files
committed
Restore brakeshoe CoF to legacy operation
1 parent 1168d61 commit c3d05c4

File tree

1 file changed

+4
-2
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,9 @@ public virtual float GetBrakeShoeFrictionFactor()
32813281
}
32823282
else
32833283
{
3284-
frictionfraction = (7.6f / (MpS.ToKpH(AbsSpeedMpS) + 17.5f) + 0.07f); // Base Curtius - Kniffler equation - u = 0.50, all other values are scaled off this formula; // For simple friction use "default" curve
3284+
// set default values if simple adhesion model, or if diesel or electric locomotive is used, which doesn't check for brake skid.
3285+
3286+
frictionfraction = 1.0f; // Default value set to leave existing brakeforce constant regardless of changing speed
32853287
return frictionfraction;
32863288
}
32873289
}
@@ -3332,7 +3334,7 @@ public virtual float GetBrakeShoeFrictionCoefficientHuD()
33323334
}
33333335
else
33343336
{
3335-
frictionfraction = 7.6f / ((MpS.ToKpH(AbsSpeedMpS) + 17.5f) + 0.07f); // Base Curtius - Kniffler equation - u = 0.50, all other values are scaled off this formula; // For simple friction use "default" curve
3337+
frictionfraction = 1.0f; // Default value set to leave existing brakeforce constant regardless of changing speed
33363338
return frictionfraction;
33373339
}
33383340
}

0 commit comments

Comments
 (0)