File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1835,8 +1835,8 @@ public void DynamicBrakeBlending(float elapsedClockSeconds)
1835
1835
float threshold = 100 ;
1836
1836
if ( diff > threshold && DynamicBrakeIntervention < 1 )
1837
1837
DynamicBrakeIntervention = Math . Min ( DynamicBrakeIntervention + elapsedClockSeconds , 1 ) ;
1838
- else if ( diff < - threshold )
1839
- DynamicBrakeIntervention -= elapsedClockSeconds ;
1838
+ else if ( diff < - threshold && DynamicBrakeIntervention > 0.01f )
1839
+ DynamicBrakeIntervention = Math . Max ( DynamicBrakeIntervention - elapsedClockSeconds , 0.01f ) ;
1840
1840
}
1841
1841
else
1842
1842
{
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ public override void Update(float elapsedClockSeconds)
591
591
{
592
592
var requiredBrakeForceN = Math . Min ( AutoCylPressurePSI / MaxCylPressurePSI , 1 ) * Car . MaxBrakeForceN ;
593
593
var localBrakeForceN = loco . DynamicBrakeForceN + Math . Min ( CylPressurePSI / MaxCylPressurePSI , 1 ) * Car . MaxBrakeForceN ;
594
- if ( localBrakeForceN > requiredBrakeForceN * 0.85f )
594
+ if ( localBrakeForceN > requiredBrakeForceN - 0.15f * Car . MaxBrakeForceN )
595
595
{
596
596
isolateAutoBrake = true ;
597
597
if ( loco . DynamicBrakePartialBailOff )
You can’t perform that action at this time.
0 commit comments