Skip to content

Commit 70a32d8

Browse files
committed
Revert "Correction to brake CoF"
This reverts commit f365984.
1 parent 4495dfe commit 70a32d8

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,6 @@ public override void Initialize()
14921492
Trace.TraceInformation("Number of Locomotive Drive Axles set to default value of {0}", LocoNumDrvAxles);
14931493
}
14941494
}
1495-
14961495
if (TractionMotorType == TractionMotorTypes.AC)
14971496
{
14981497
InductionMotor motor = new InductionMotor(LocomotiveAxle, this);

Source/Orts.Simulation/Simulation/RollingStocks/MSTSWagon.cs

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -597,39 +597,34 @@ public virtual void LoadFromWagFile(string wagFilePath)
597597
MassKG = InitialMassKG;
598598

599599
MaxHandbrakeForceN = InitialMaxHandbrakeForceN;
600-
601600
if (MaxBrakeShoeForceN != 0 && BrakeShoeType != BrakeShoeTypes.Unknown)
602601
{
603-
MaxBrakeForceN = MaxBrakeShoeForceN;
602+
MaxBrakeForceN = MaxBrakeShoeForceN;
603+
604+
if (Simulator.Settings.VerboseConfigurationMessages)
605+
{
606+
Trace.TraceInformation("BrakeShoeType set to {0}, with a MaxBrakeShoeForce of {1}", BrakeShoeType, FormatStrings.FormatForce(MaxBrakeForceN, IsMetric));
607+
}
608+
604609
}
605610
else
606611
{
607612
MaxBrakeForceN = InitialMaxBrakeForceN;
608613

609614
if (Simulator.Settings.VerboseConfigurationMessages)
610615
{
611-
Trace.TraceInformation("Unknown BrakeShoeType set to OR default (Cast Iron) with a MaxBrakeForce of {0}", FormatStrings.FormatForce(MaxBrakeForceN, IsMetric));
616+
Trace.TraceInformation("BrakeShoeType set to {0}, with a MaxBrakeForce of {1}", BrakeShoeType, FormatStrings.FormatForce(MaxBrakeForceN, IsMetric));
612617
}
613618
}
614619

615620
// Initialise number of brake shoes per wagon
616621
if (NumberCarBrakeShoes == 0 && WagonType == WagonTypes.Engine)
617622
{
618623
NumberCarBrakeShoes = LocoNumDrvAxles * 4.0f; // Assume 4 brake shoes per axle
619-
620-
if (Simulator.Settings.VerboseConfigurationMessages && (BrakeShoeType == BrakeShoeTypes.CastIron || BrakeShoeType == BrakeShoeTypes.HiFrictionCompost))
621-
{
622-
Trace.TraceInformation("Number of Locomotive Brakeshoes set to default value of {0}", NumberCarBrakeShoes);
623-
}
624624
}
625-
else if (NumberCarBrakeShoes == 0 )
625+
else if (NumberCarBrakeShoes == 0)
626626
{
627627
NumberCarBrakeShoes = WagonNumAxles * 4.0f; // Assume 4 brake shoes per axle
628-
629-
if (Simulator.Settings.VerboseConfigurationMessages && (BrakeShoeType == BrakeShoeTypes.CastIron || BrakeShoeType == BrakeShoeTypes.HiFrictionCompost))
630-
{
631-
Trace.TraceInformation("Number of Wagon Brakeshoes set to default value of {0}", NumberCarBrakeShoes);
632-
}
633628
}
634629

635630
CentreOfGravityM = InitialCentreOfGravityM;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3296,7 +3296,7 @@ public virtual float GetBrakeShoeFrictionCoefficientHuD()
32963296
// https://iopscience.iop.org/article/10.1088/1742-6596/1614/1/012086/pdf
32973297

32983298
float NewtonsTokNewtons = 0.001f;
3299-
float brakeShoeForcekN = NewtonsTokNewtons * BrakeShoeForceN / NumberCarBrakeShoes;
3299+
float brakeShoeForcekN = NewtonsTokNewtons * BrakeShoeForceN;
33003300

33013301
if (BrakeShoeType == BrakeShoeTypes.CastIron)
33023302
{

0 commit comments

Comments
 (0)