Skip to content

Commit 589e716

Browse files
committed
Remove trace statements no longer required.
1 parent 2c39260 commit 589e716

File tree

1 file changed

+0
-7
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,20 +2094,13 @@ public virtual void UpdateCurveForce(float elapsedClockSeconds)
20942094

20952095
var rBaseWagonN = N.FromLbf(Kg.ToLb(MassKG) * Train.WagonCoefficientFriction * (Me.ToFt(TrackGaugeM) + Me.ToFt(RigidWheelBaseM)) / (2.0f * Me.ToFt(CurrentCurveRadius)));
20962096

2097-
// if (CurrentCurveRadius > 0)
2098-
// Trace.TraceInformation("Curve Friction - CarID {0} Friction {1} Weight {2} WagonFriction {3} Gauge {4} WheelBase {5} CurveRadius {6}", CarID, rBaseWagonN, Kg.ToLb(MassKG), Train.WagonCoefficientFriction, Me.ToFt(TrackGaugeM), Me.ToFt(RigidWheelBaseM), Me.ToFt(CurrentCurveRadius));
2099-
21002097
// Speed Curve Resistance (from reference ii) - second term only) = ((Speed^2 / Curve Radius) - (Superelevation / Track Gauge) * Gravitational acceleration) * Constant
21012098

21022099
var speedConstant = 1.5f;
21032100
var MToMM = 1000;
21042101
var rspeedKgpTonne = speedConstant * Math.Abs((SpeedMpS * SpeedMpS / CurrentCurveRadius) - ((MToMM * SuperelevationM / MToMM * TrackGaugeM) * GravitationalAccelerationMpS2));
21052102
var rSpeedWagonN = GravitationalAccelerationMpS2 * (Kg.ToTonne(MassKG) * rspeedKgpTonne);
21062103

2107-
// if (CurrentCurveRadius > 0)
2108-
// Trace.TraceInformation("Curve Friction Speed - CarID {0} Weight {1} WagonFriction {2} Gauge {3} CurveRadius {4} SuperElevation {5} Gauge {6} rspeedKgpTonne {7} rSpeedWagonN {8} rBaseWagonN {9}", CarID, Kg.ToTonne(MassKG), Train.WagonCoefficientFriction, TrackGaugeM, CurrentCurveRadius, SuperelevationM, TrackGaugeM, rspeedKgpTonne, rSpeedWagonN, rBaseWagonN);
2109-
2110-
21112104
CurveForceN = rBaseWagonN + rSpeedWagonN;
21122105
}
21132106
else

0 commit comments

Comments
 (0)