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)
18351835 float threshold = 100 ;
18361836 if ( diff > threshold && DynamicBrakeIntervention < 1 )
18371837 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 ) ;
18401840 }
18411841 else
18421842 {
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ public override void Update(float elapsedClockSeconds)
591591 {
592592 var requiredBrakeForceN = Math . Min ( AutoCylPressurePSI / MaxCylPressurePSI , 1 ) * Car . MaxBrakeForceN ;
593593 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 )
595595 {
596596 isolateAutoBrake = true ;
597597 if ( loco . DynamicBrakePartialBailOff )
You can’t perform that action at this time.
0 commit comments