File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3120,10 +3120,10 @@ MaxAuxilaryChargingRate and EmergencyResChargingRate.
31203120 Relay valves may be installed to achieve higher brake cylinder pressures,
31213121 dynamic brake blending or variable load compensation.
31223122- ``Wagon(ORTSBrakeRelayValveInshot `` -- Sets the "in-shot" pressure for the relay
3123- valve. Relay valves with a ratio less than 1 may not produce sufficient pressure
3124- to extend the brake cylinders. In-shot solves this problem by applying additional
3125- pressure at a 1:1 ratio, regardless of the actual relay valve ratio. The pressure
3126- defined here is the maximum amount of additional pressure to apply .
3123+ valve. This pressure will be added to the regular output of the relay valve for any
3124+ application, effectively setting a minimum brake cylinder pressure. Many step down
3125+ relay valves ( ratio less than 1) utilize in-shot to ensure brake cylinders extend
3126+ fully for light train brake applications .
31273127- ``Wagon(ORTSEngineBrakeRelayValveRatio `` -- Same as ``ORTSBrakeRelayValveRatio ``,
31283128 but for the engine brake.
31293129- ``Wagon(ORTSEngineBrakeRelayValveInshot `` -- Same as ``ORTSBrakeRelayValveInshot ``,
Original file line number Diff line number Diff line change @@ -488,13 +488,13 @@ public override void Initialize()
488488 if ( Car . Simulator . Settings . SimpleControlPhysics && EmergResVolumeM3 > 2.0 )
489489 EmergResVolumeM3 = 0.7f ;
490490
491- if ( ServiceMaxCylPressurePSI == 0 )
492- ServiceMaxCylPressurePSI = MaxTripleValveCylPressurePSI ;
491+ // Set default values for any optional tokens that are unset
493492 if ( MaxTripleValveCylPressurePSI == 0 )
494493 MaxTripleValveCylPressurePSI = MaxCylPressurePSI / RelayValveRatio ;
494+ if ( ServiceMaxCylPressurePSI == 0 )
495+ ServiceMaxCylPressurePSI = MaxTripleValveCylPressurePSI ;
495496 if ( EngineRelayValveRatio == 0 )
496497 EngineRelayValveRatio = RelayValveRatio ;
497-
498498 if ( ServiceApplicationRatePSIpS == 0 )
499499 ServiceApplicationRatePSIpS = MaxApplicationRatePSIpS ;
500500
@@ -544,7 +544,7 @@ public override void Initialize()
544544
545545 RelayValveFitted |= ( Car is MSTSLocomotive loco && ( loco . DynamicBrakeAutoBailOff || loco . DynamicBrakePartialBailOff ) ) ||
546546 ( Car as MSTSWagon ) . BrakeValve == MSTSWagon . BrakeValveType . DistributingValve || ( Car as MSTSWagon ) . SupplyReservoirPresent ||
547- TwoStageRelayValveRatio != 0 ;
547+ TwoStageRelayValveRatio != 0 || RelayValveInshot != 0 || EngineRelayValveInshot != 0 ;
548548
549549 // If user specified only one two stage speed, set the other to be equal
550550 if ( TwoStageSpeedDownMpS == 0 && TwoStageSpeedUpMpS > 0 )
You can’t perform that action at this time.
0 commit comments