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 @@ -1837,8 +1837,8 @@ public void DynamicBrakeBlending(float elapsedClockSeconds)
1837
1837
float threshold = 100 ;
1838
1838
if ( diff > threshold && DynamicBrakeIntervention < 1 )
1839
1839
DynamicBrakeIntervention = Math . Min ( DynamicBrakeIntervention + elapsedClockSeconds , 1 ) ;
1840
- else if ( diff < - threshold )
1841
- DynamicBrakeIntervention -= elapsedClockSeconds ;
1840
+ else if ( diff < - threshold && DynamicBrakeIntervention > 0.01f )
1841
+ DynamicBrakeIntervention = Math . Max ( DynamicBrakeIntervention - elapsedClockSeconds , 0.01f ) ;
1842
1842
}
1843
1843
else
1844
1844
{
Original file line number Diff line number Diff line change @@ -603,7 +603,7 @@ public override void Update(float elapsedClockSeconds)
603
603
{
604
604
var requiredBrakeForceN = Math . Min ( AutoCylPressurePSI / MaxCylPressurePSI , 1 ) * Car . MaxBrakeForceN ;
605
605
var localBrakeForceN = loco . DynamicBrakeForceN + Math . Min ( CylPressurePSI / MaxCylPressurePSI , 1 ) * Car . MaxBrakeForceN ;
606
- if ( localBrakeForceN > requiredBrakeForceN * 0.85f )
606
+ if ( localBrakeForceN > requiredBrakeForceN - 0.15f * Car . MaxBrakeForceN )
607
607
{
608
608
isolateAutoBrake = true ;
609
609
if ( loco . DynamicBrakePartialBailOff )
You can’t perform that action at this time.
0 commit comments