Skip to content

Commit 30d7b53

Browse files
committed
Force input axle force to zero if throttle is closed
1 parent d6d0c82 commit 30d7b53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5236,6 +5236,13 @@ protected override void UpdateTractiveForce(float elapsedClockSeconds, float t,
52365236
// To convert the force at the crank to the force at wheel tread = Crank Force * Cylinder Stroke / Diameter of Drive Wheel (inches) - internal friction
52375237
// should be deducted from this as well.
52385238
float tangentialWheelTreadForceLbf = tangentialCrankWheelForceLbf * Me.ToIn(CylinderStrokeM) / Me.ToIn(DrvWheelDiaM);
5239+
5240+
if (throttle <= 0)
5241+
{
5242+
tangentialWheelTreadForceLbf = 0; // force wheel force to zero if throttle - problem seems to only happen at higher speeds,
5243+
// so could be a decrease in sampling points as the wheels rotate faster.
5244+
}
5245+
52395246
DisplayTangentialWheelTreadForceLbf += tangentialWheelTreadForceLbf;
52405247
TractiveForceN += N.FromLbf(Math.Max(tangentialWheelTreadForceLbf, -1000));
52415248

0 commit comments

Comments
 (0)