Skip to content

Commit f0c670c

Browse files
committed
correct calculation issue
1 parent a78797f commit f0c670c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ public void UpdateTrainDerailmentRisk(float elapsedClockSeconds)
14861486
DerailClimbDistanceM = Me.FromFt( (float)((parameterA * parameterB * Me.ToIn(WheelFlangeLengthM)) / ((angleofAttackmRad + (parameterB * Me.ToIn(WheelFlangeLengthM))))) );
14871487

14881488
// calculate the time taken to travel the derail climb distance
1489-
var derailTimeS = AbsSpeedMpS / DerailClimbDistanceM;
1489+
var derailTimeS = DerailClimbDistanceM / AbsSpeedMpS;
14901490

14911491
// Set indication that a derail may occur
14921492
if (DerailmentCoefficient > NadalDerailmentCoefficient)

0 commit comments

Comments
 (0)