You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Trace.TraceInformation("Fx Values - a {0} fa1 {1} b {2} fb1 {3} s {4} fs {5} t {6} ft {7} u {8} fu {9} v {10} fv {11} x {12} fx {13} y {14} fy {15} Speed {16} Threshold {17} Fslip {18} SlipSpeed {19}", a, fa1, b, fb1, s, fs, t, ft, u, fu, v, fv, x, fx, y, fy, TrainSpeedMpS, WheelSlipThresholdMpS, fslip, SlipSpeedMpS);
647
+
if(IsWheelSlip)
648
+
{
649
+
// Trace.TraceInformation("Fx Values - a {0} fa1 {1} b {2} fb1 {3} s {4} fs {5} t {6} ft {7} u {8} fu {9} v {10} fv {11} x {12} fx {13} y {14} fy {15} Speed {16} Threshold {17} Fslip {18} SlipSpeed {19}", a, fa1, b, fb1, s, fs, t, ft, u, fu, v, fv, x, fx, y, fy, TrainSpeedMpS, WheelSlipThresholdMpS, fslip, SlipSpeedMpS);
// Trace.TraceInformation("Algorithim Change - k1 - Number of Steps {0}", NumOfSubstepsPS);
905
939
dt=elapsedClockSeconds/NumOfSubstepsPS;
906
940
hdt=dt/2;
907
941
}
@@ -974,18 +1008,20 @@ public virtual void Update(float timeSpan)
974
1008
// Adding and substracting the brake force is correct for normal operation,
975
1009
// but during wheelslip this will produce wrong results.
976
1010
// The Axle module subtracts brake force from the motive force for calculation purposes. However brake force is already taken into account in the braking module.
977
-
// And thus there is a duplication of the braking effect in OR. To compensate for this, after the slip characteristics have been calculated, the output of the axle module
978
-
// has the brake force "added" back in to give the appropriate motive force output for the locomotive. Braking force is handled separately.
979
-
// Hence CompensatedAxleForce is the actual output force on the axle.
1011
+
// And thus there is a duplication of the braking effect in OR. To compensate for this, after the slip characteristics have been calculated, the output of the axle
1012
+
// module has the brake force "added" back in to give the appropriate motive force output for the locomotive. Braking force is handled separately.
1013
+
// Hence CompensatedAxleForce is the actual output force on the axle. Similarly friction is also handled separately so it is also discounted from the CompensatedForce.
0 commit comments