Skip to content

Commit

Permalink
Merge pull request #997 from cesarBLG/fix-independent-default
Browse files Browse the repository at this point in the history
Disable independent brake syncing by default
  • Loading branch information
cesarBLG authored Nov 6, 2024
2 parents 2d03c3f + 0de38ec commit c7d3241
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 3 additions & 7 deletions Source/Documentation/Manual/physics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2415,9 +2415,9 @@ present for simplicity.
single: ORTSDPBrakeSynchronization

By default, Open Rails will treat remote groups as manned helpers who typically
would not assist in train brake operations, so only independent brakes will synchronize.
To enable train brake synchronization, the token ``engine(ORTSDPBrakeSynchronization(``
should be used. The valid settings for ``ORTSDPBrakeSynchronization`` are as follows:
would not assist in train brake operations. To enable brake synchronization,
the token ``engine(ORTSDPBrakeSynchronization(`` should be used.
The valid settings for ``ORTSDPBrakeSynchronization`` are as follows:

- ``"Apply"``: DP units will reduce the brake pipe pressure locally to match the
equalizing reservoir pressure of the controlling locomotive. (The controlling
Expand All @@ -2432,10 +2432,6 @@ should be used. The valid settings for ``ORTSDPBrakeSynchronization`` are as fol
controlling locomotive, and will automatically bail-off automatic brake
applications if needed. (The controlling locomotive must also have the
``"Independent"`` setting.)
- NOTE: Although ``"Independent"`` is enabled by default,
if ``ORTSDPBrakeSynchronization`` is present in the .eng
file but ``"Independent"`` is not specified as an option,
independent brakes will NOT be synchronized.

All settings can be combined as needed, simply place a comma between each setting
in the string: ``ORTSDPBrakeSynchronization("Apply, Release, Emergency, Independent")``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public float OdometerM
public bool DPSyncTrainApplication { get; private set; }
public bool DPSyncTrainRelease { get; private set; }
public bool DPSyncEmergency { get; private set; }
public bool DPSyncIndependent { get; private set; } = true;
public bool DPSyncIndependent { get; private set; }

protected const float DefaultCompressorRestartToMaxSysPressureDiff = 35; // Used to check if difference between these two .eng parameters is correct, and to correct it
protected const float DefaultMaxMainResToCompressorRestartPressureDiff = 10; // Used to check if difference between these two .eng parameters is correct, and to correct it
Expand Down Expand Up @@ -1160,8 +1160,6 @@ public override void Parse(string lowercasetoken, STFReader stf)
DPSyncEmergency = true;
if (dpSyncModes.Contains("independent"))
DPSyncIndependent = true;
else // Independent synchronization is assumed to be enabled unless explicitly not enabled
DPSyncIndependent = false;
break;
case "engine(ortsdynamicblendingoverride": DynamicBrakeBlendingOverride = stf.ReadBoolBlock(false); break;
case "engine(ortsdynamicblendingforcematch": DynamicBrakeBlendingForceMatch = stf.ReadBoolBlock(false); break;
Expand Down

0 comments on commit c7d3241

Please sign in to comment.