Skip to content

Commit 4447c8d

Browse files
committed
Change default settings for drive wheel braking
1 parent 57dfe63 commit 4447c8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,13 @@ public virtual void LoadFromWagFile(string wagFilePath)
617617
{
618618
var LocoTest = Simulator.PlayerLocomotive as MSTSLocomotive;
619619

620-
if (LocoTest != null && !LocoTest.DriveWheelOnlyBrakes)
620+
if (LocoTest != null && LocoTest.DriveWheelOnlyBrakes)
621621
{
622-
NumberCarBrakeShoes = LocoNumDrvAxles * 4 + WagonNumAxles * 4; // Assume 4 brake shoes per axle on all wheels
622+
NumberCarBrakeShoes = LocoNumDrvAxles * 4; // Assume 4 brake shoes per axle on drive wheels only
623623
}
624624
else
625625
{
626-
NumberCarBrakeShoes = LocoNumDrvAxles * 4; // Assume 4 brake shoes per axle on drive wheels only
626+
NumberCarBrakeShoes = (LocoNumDrvAxles * 4) + (WagonNumAxles * 4); // Assume 4 brake shoes per axle on all wheels
627627
}
628628

629629
if (Simulator.Settings.VerboseConfigurationMessages && (BrakeShoeType == BrakeShoeTypes.CastIron || BrakeShoeType == BrakeShoeTypes.HiFrictionCompost))

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,15 +3318,15 @@ public virtual float GetBrakeShoeFrictionCoefficientHuD()
33183318
}
33193319
else
33203320
{
3321-
frictionfraction = (7.6f / (MpS.ToKpH(AbsSpeedMpS) + 17.5f) + 0.07f) * AdhesionMultiplier; // Base Curtius - Kniffler equation - u = 0.50, all other values are scaled off this formula
3321+
frictionfraction = 7.6f / ((MpS.ToKpH(AbsSpeedMpS) + 17.5f) + 0.07f) * AdhesionMultiplier; // Base Curtius - Kniffler equation - u = 0.50, all other values are scaled off this formula
33223322
}
33233323
}
33243324

33253325
return frictionfraction;
33263326
}
33273327
else
33283328
{
3329-
frictionfraction = (7.6f / (MpS.ToKpH(AbsSpeedMpS) + 17.5f) + 0.07f); // Base Curtius - Kniffler equation - u = 0.50, all other values are scaled off this formula; // For simple friction use "default" curve
3329+
frictionfraction = 7.6f / ((MpS.ToKpH(AbsSpeedMpS) + 17.5f) + 0.07f); // Base Curtius - Kniffler equation - u = 0.50, all other values are scaled off this formula; // For simple friction use "default" curve
33303330
return frictionfraction;
33313331
}
33323332
}

0 commit comments

Comments
 (0)