File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,13 @@ public override void Initialize()
407
407
Trace . TraceWarning ( "{0} does not define a brake valve, defaulting to a plain triple valve" , ( Car as MSTSWagon ) . WagFilePath ) ;
408
408
}
409
409
410
+ // Reducing reservoir charging rates when set unrealistically high
411
+ if ( Car . Simulator . Settings . CorrectQuestionableBrakingParams && ( MaxAuxilaryChargingRatePSIpS > 10 || EmergResChargingRatePSIpS > 10 ) )
412
+ {
413
+ MaxAuxilaryChargingRatePSIpS = Math . Min ( MaxAuxilaryChargingRatePSIpS , 10.0f ) ;
414
+ EmergResChargingRatePSIpS = Math . Min ( EmergResChargingRatePSIpS , 10.0f ) ;
415
+ }
416
+
410
417
// In simple brake mode set emergency reservoir volume, override high volume values to allow faster brake release.
411
418
if ( Car . Simulator . Settings . SimpleControlPhysics && EmergResVolumeM3 > 2.0 )
412
419
EmergResVolumeM3 = 0.7f ;
@@ -468,7 +475,7 @@ public void UpdateTripleValveState(float elapsedClockSeconds)
468
475
bool disableGradient = ! ( Car . Train . LeadLocomotive is MSTSLocomotive ) && Car . Train . TrainType != Orts . Simulation . Physics . Train . TRAINTYPE . STATIC ;
469
476
// Small workaround to allow trains to more reliably go into emergency after uncoupling
470
477
bool emergencyTripped = ( Car . Train . TrainType == Orts . Simulation . Physics . Train . TRAINTYPE . STATIC ) ?
471
- BrakeLine1PressurePSI <= EmergResPressurePSI * AuxCylVolumeRatio / ( AuxCylVolumeRatio + 1 ) : Math . Max ( - SmoothedBrakePipeChangePSIpS . SmoothedValue , 0 ) > EmergencyValveActuationRatePSIpS ;
478
+ BrakeLine1PressurePSI <= 0.75f * EmergResPressurePSI * AuxCylVolumeRatio / ( AuxCylVolumeRatio + 1 ) : Math . Max ( - SmoothedBrakePipeChangePSIpS . SmoothedValue , 0 ) > EmergencyValveActuationRatePSIpS ;
472
479
473
480
if ( valveType == MSTSWagon . BrakeValveType . Distributor )
474
481
{
You can’t perform that action at this time.
0 commit comments