Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de5bf9c

Browse files
committed
Automatic merge of T1.5.1-542-ga8a4343d9 and 15 pull requests
- Pull request #757 at 98dd1a7: Unify RailDriver code implementations - Pull request #821 at cc3af66: Adds suppression of safety valves - Pull request #831 at 61bbf43: poor mans switch panel on tablet - Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #841 at 410a585: https://blueprints.launchpad.net/or/+spec/animating-trainset-windows - Pull request #853 at a9760ec: Notify out of focus - Pull request #855 at b39e5d8: Adds new route from TrainSimulations - Pull request #857 at 9afc8c3: Adding Air Flow Meters - Pull request #859 at 8a7df84: Steam adhesion bug#1 - Pull request #860 at d2b8a52: Changes in the Car Operations Menu for the lines with brake information - Pull request #861 at 589e716: Curve friction#1 - Pull request #862 at 489f261: Fix engine leak problem - Pull request #863 at a34b857: Alternate preset 3D cabviewpoints - Pull request #864 at 7d0f327: Fixes for Undesired Emergency Applications - Pull request #865 at bfba8f0: Dispatcher window improvements
17 parents e327934 + a8a4343 + 98dd1a7 + cc3af66 + 61bbf43 + d00beb9 + 410a585 + a9760ec + b39e5d8 + 9afc8c3 + 8a7df84 + d2b8a52 + 589e716 + 489f261 + a34b857 + 7d0f327 + bfba8f0 commit de5bf9c

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)