@@ -49,7 +49,7 @@ public class AirSinglePipe : MSTSBrakeSystem
49
49
protected float MaxReleaseRatePSIpS = 1.86f ;
50
50
protected float MaxApplicationRatePSIpS = .9f ;
51
51
protected float MaxAuxilaryChargingRatePSIpS = 1.684f ;
52
- protected float BrakeInsensitivityPSIpS = 0 ;
52
+ protected float BrakeInsensitivityPSIpS = 0.07f ;
53
53
protected float EmergencyValveActuationRatePSIpS = 0 ;
54
54
protected float EmergResChargingRatePSIpS = 1.684f ;
55
55
protected float EmergAuxVolumeRatio = 1.4f ;
@@ -230,7 +230,7 @@ public override void Parse(string lowercasetoken, STFReader stf)
230
230
231
231
// OpenRails specific parameters
232
232
case "wagon(brakepipevolume" : BrakePipeVolumeM3 = Me3 . FromFt3 ( stf . ReadFloatBlock ( STFReader . UNITS . VolumeDefaultFT3 , null ) ) ; break ;
233
- case "wagon(ortsbrakeinsensitivity" : BrakeInsensitivityPSIpS = stf . ReadFloatBlock ( STFReader . UNITS . PressureRateDefaultPSIpS , null ) ; break ;
233
+ case "wagon(ortsbrakeinsensitivity" : BrakeInsensitivityPSIpS = stf . ReadFloatBlock ( STFReader . UNITS . PressureRateDefaultPSIpS , 0.07f ) ; break ;
234
234
case "wagon(ortsemergencyvalveactuationrate" : EmergencyValveActuationRatePSIpS = stf . ReadFloatBlock ( STFReader . UNITS . PressureRateDefaultPSIpS , 15f ) ; break ;
235
235
case "wagon(ortsmainrespipeauxrescharging" : MRPAuxResCharging = this is AirTwinPipe && stf . ReadBoolBlock ( true ) ; break ;
236
236
}
@@ -481,7 +481,7 @@ public override void Update(float elapsedClockSeconds)
481
481
{
482
482
ControlResPressurePSI = BrakeLine1PressurePSI ;
483
483
}
484
- else if ( ControlResPressurePSI > BrakeLine1PressurePSI ) // Overcharge elimination
484
+ else if ( ControlResPressurePSI > BrakeLine1PressurePSI && ControlResPressurePSI < BrakeLine1PressurePSI + 1 ) // Overcharge elimination
485
485
{
486
486
float dp = elapsedClockSeconds * BrakeInsensitivityPSIpS ;
487
487
ControlResPressurePSI = Math . Max ( ControlResPressurePSI - dp , BrakeLine1PressurePSI ) ;
0 commit comments