Skip to content

Commit 9a07b4e

Browse files
committed
Further correction
1 parent 5d376eb commit 9a07b4e

File tree

1 file changed

+3
-3
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public virtual void Initialize()
740740
float NewtonsTokNewtons = 0.001f;
741741
float maxBrakeShoeForcekN = NewtonsTokNewtons * MaxBrakeShoeForceN / NumberCarBrakeShoes;
742742

743-
if (maxBrakeShoeForcekN > 21 && Simulator.Settings.VerboseConfigurationMessages)
743+
if (maxBrakeShoeForcekN > 20 && Simulator.Settings.VerboseConfigurationMessages)
744744
{
745745
Trace.TraceInformation("Maximum force per brakeshoe is {0} and has exceeded {1}, check MaxBrakeShoeForceN {2} or NumberCarBrakeShoes {3}", FormatStrings.FormatForce(maxBrakeShoeForcekN * 1000, IsMetric), FormatStrings.FormatForce(20 * 1000, IsMetric), FormatStrings.FormatForce(MaxBrakeShoeForceN, IsMetric), NumberCarBrakeShoes);
746746
}
@@ -3436,9 +3436,9 @@ public float KarwatzkiBrakeShoeFriction ( float k1, float k2, float k3, float k4
34363436
var friction = 0.0f;
34373437
float NewtonsTokNewtons = 0.001f;
34383438
float brakeShoeForcekN = NewtonsTokNewtons * BrakeShoeForceN / NumberCarBrakeShoes;
3439-
if (brakeShoeForcekN > 21) // Make sure that brake shoe force doesn't exceed 21 as it will cause a -ve brakeshoe CoF
3439+
if (brakeShoeForcekN > 20) // Make sure that brake shoe force doesn't exceed 20 as it will cause a -ve brakeshoe CoF
34403440
{
3441-
brakeShoeForcekN = 21;
3441+
brakeShoeForcekN = 20;
34423442
}
34433443
friction = k1 * ((brakeShoeForcekN + k2) / (brakeShoeForcekN + k3)) * ((MpS.ToKpH(AbsSpeedMpS) + k4) / (MpS.ToKpH(AbsSpeedMpS) + k5));
34443444

0 commit comments

Comments
 (0)