Skip to content

Commit 99764f6

Browse files
committed
correct power calculation
1 parent 1fdfe7f commit 99764f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5838,6 +5838,15 @@ protected override void UpdateTractiveForce(float elapsedClockSeconds, float loc
58385838
MaxPowerW = 0;
58395839
MaxForceN = 0;
58405840

5841+
if (WheelSlip && AdvancedAdhesionModel)
5842+
{
5843+
AbsTractionSpeedMpS = AbsWheelSpeedMpS;
5844+
}
5845+
else
5846+
{
5847+
AbsTractionSpeedMpS = AbsSpeedMpS;
5848+
}
5849+
58415850
// Update tractive effort across all steam engines
58425851
for (int i = 0; i < SteamEngines.Count; i++)
58435852
{

0 commit comments

Comments
 (0)