Skip to content

Commit e158b20

Browse files
committed
Automatic merge of T1.6-rc3-30-gdf7bf1a26 and 16 pull requests
- Pull request #1104 at 1f7af77: Handle simple adhesion within the axle module - Pull request #1057 at 1c2bcb4: Switchable brake system - Pull request #1086 at e10390b: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at 7fc8de1: Automatic speed control - Pull request #1110 at 387388e: Fix Activity Runner persists after loading exception - Pull request #1115 at 270f22f: Do not activate ETS switch if no suitable cars are attached - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1123 at dc286f5: Handle null control active locomotive - Pull request #1125 at 7a4f055: Lift #1096 into 1.6 release - Pull request #1129 at 034b6e2: adds missing es.po files - Pull request #1130 at 251a677: Fix F9 points to an incorrect car ID. - Pull request #1131 at d8f0d8c: fix: Skip byte position from compressed files as it is not supported - Pull request #1132 at 1dd9be8: Fixes For Correct Questionable Braking Parameters - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1081 at 689494b: Brake cuts power unification - Pull request #1124 at fab5457: Built-in PBL2 brake controller
18 parents 1a6d567 + df7bf1a + 1f7af77 + 1c2bcb4 + e10390b + 7fc8de1 + 387388e + 270f22f + 91d2d26 + dc286f5 + 7a4f055 + 034b6e2 + 251a677 + d8f0d8c + 1dd9be8 + 5845a1a + 689494b + fab5457 commit e158b20

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

Source/Documentation/Manual/options.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -863,21 +863,23 @@ are a problem for OR, which has a more sophisticated braking model. The
863863
problem usually is that the train brakes require a long time to release,
864864
and in some times do not release at all.
865865

866-
.. index::
867-
single: AirBrakesAirCompressorPowerRating
868-
869866
The following checks and corrections are performed if the option is
870-
checked (only for single-pipe brake system):
867+
checked:
871868

872869
- if the compressor restart pressure is smaller or very near to the max
873870
system pressure, the compressor restart pressure and if necessary the max
874-
main reservoir pressure are increased;
871+
main reservoir pressure are increased (single pipe air brakes only)
875872
- if the main reservoir volume is smaller than 0.3 m\ :sup:`3` and the
876873
engine mass is higher than 20 tons, the reservoir volume is raised to 0.78
877-
m\ :sup:`3`;
878-
- the charging rate of the reservoir is derived from the .eng parameter
879-
``AirBrakesAirCompressorPowerRating`` (if this generates a value greater
880-
than 0.5 psi/s) instead of using a default value.
874+
m\ :sup:`3`
875+
- the maximum brake cylinder pressure will be reduced to the maximum pressure
876+
possible from a full service train brake application if it was set above this
877+
amount
878+
- any brake pipe leakage specified by ``TrainPipeLeakRate`` is disabled
879+
- the dynamic brake delay on electric locomotives is reduced to 2 seconds
880+
if it was defined to be above 4 seconds
881+
- dynamic brake force left at the default value of 20kN will be increased to
882+
half the locomotive's continuous force, or 150kN, whichever is lower
881883

882884
For a full list of parameters, see :ref:`Developing ORTS Content - Parameters and Tokens<parameters_and_tokens>`
883885

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public float OdometerM
389389
public float CompressorRestartPressurePSI = 110;
390390
public float CompressorChargingRateM3pS = 0.075f;
391391
public bool CompressorIsMUControlled = false;
392-
public float MainResChargingRatePSIpS = 0.4f;
392+
public float MainResChargingRatePSIpS = -1.0f;
393393
public float EngineBrakeReleaseRatePSIpS = 12.5f;
394394
public float EngineBrakeApplyRatePSIpS = 12.5f;
395395
public float BrakePipeTimeFactorS = 0.0015f;
@@ -2023,16 +2023,18 @@ protected void CorrectBrakingParams()
20232023
// correct questionable MaxCylPressurePSI
20242024
BrakeSystem.CorrectMaxCylPressurePSI(this);
20252025
}
2026-
if (MainResChargingRatePSIpS <= 0)
2026+
// Disable brake pipe leak to prevent stuck brakes
2027+
if (TrainBrakePipeLeakPSIorInHgpS > 0)
2028+
TrainBrakePipeLeakPSIorInHgpS = 0;
2029+
}
2030+
// No OR compressor speed defined, use MSTS compressor speed or 0.025 m^3/s (whichever is higher)
2031+
if (MainResChargingRatePSIpS < 0)
20272032
{
2028-
MainResChargingRatePSIpS = Math.Max(0.5f, (CompressorChargingRateM3pS * Bar.ToPSI(1)) / MainResVolumeM3);
2033+
MainResChargingRatePSIpS = Math.Max(0.025f, CompressorChargingRateM3pS) * OneAtmospherePSI / MainResVolumeM3;
20292034
}
2030-
}
2031-
else if (MainResChargingRatePSIpS <= 0) MainResChargingRatePSIpS = 0.4f;
20322035

20332036
// Corrections for dynamic braking parameters
20342037

2035-
if (this is MSTSElectricLocomotive && DynamicBrakeDelayS > 4) DynamicBrakeDelayS = 2; // Electric locomotives have short engaging delays
20362038
if (DynamicBrakeSpeed2MpS > 0 && DynamicBrakeSpeed3MpS > 0 && DynamicBrakeSpeed2MpS > DynamicBrakeSpeed3MpS)
20372039
{
20382040
// also exchanging DynamicBrakesMaximumEffectiveSpeed with DynamicBrakesFadingSpeed is a frequent error that upsets operation of
@@ -2043,6 +2045,9 @@ protected void CorrectBrakingParams()
20432045
}
20442046
if (Simulator.Settings.CorrectQuestionableBrakingParams)
20452047
{
2048+
if (this is MSTSElectricLocomotive && DynamicBrakeDelayS > 4)
2049+
DynamicBrakeDelayS = 2; // Electric locomotives have short engaging delays
2050+
20462051
if (MaxDynamicBrakeForceN > 0 && MaxContinuousForceN > 0 &&
20472052
(MaxDynamicBrakeForceN / MaxContinuousForceN < 0.3f && MaxDynamicBrakeForceN == 20000))
20482053
MaxDynamicBrakeForceN = Math.Min (MaxContinuousForceN * 0.5f, 150000); // 20000 is suggested as standard value in the MSTS documentation, but in general it is a too low value

0 commit comments

Comments
 (0)