You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -574,9 +573,9 @@ public override void Update(float elapsedClockSeconds)
574
573
}
575
574
else
576
575
{
577
-
if(TripleValveState==ValveState.Apply&&AcceleratedApplicationRatio>0)// Accelerated application: Air is vented from the brake pipe to speed up service applications
576
+
if(AcceleratedApplicationFactor>0)// Accelerated application: Air is vented from the brake pipe to speed up service applications
578
577
{
579
-
dpPipe=Math.Min(BrakePipeChange*AcceleratedApplicationRatio,elapsedClockSeconds*AcceleratedApplicationLimitPSIpS);// Amount of air vented is proportional to pressure reduction from external sources
578
+
dpPipe=Math.Min(BrakePipeChange*AcceleratedApplicationFactor,elapsedClockSeconds*AcceleratedApplicationLimitPSIpS);// Amount of air vented is proportional to pressure reduction from external sources
580
579
}
581
580
dp=elapsedClockSeconds*MaxApplicationRatePSIpS;
582
581
}
@@ -686,14 +685,17 @@ public override void Update(float elapsedClockSeconds)
686
685
}
687
686
688
687
// Handle brake release: reduce cylinder pressure if all triple valve, EP holding valve and retainers allow so
688
+
if(threshold<2.2f)// Prevent brakes getting stuck with a small amount of air on distributor systems
dp*=MathHelper.Clamp(AutoCylPressurePSI-threshold,0.1f,1.0f);// Reduce release rate if nearing target pressure to prevent toggling between release and lap
695
697
if(AutoCylPressurePSI-dp<minCylPressurePSI)
696
-
dp=AutoCylPressurePSI-minCylPressurePSI;
698
+
dp=AutoCylPressurePSI-minCylPressurePSI;
697
699
if(dp<0)
698
700
dp=0;
699
701
AutoCylPressurePSI-=dp;
@@ -751,6 +753,8 @@ public override void Update(float elapsedClockSeconds)
dpAux*=MathHelper.Clamp(BrakeLine1PressurePSI-AuxResPressurePSI,0.1f,1.0f);// Reduce recharge rate if nearing target pressure to smooth out changes in brake pipe
754
758
if(UniformChargingRatio>0)// Uniform charging: Aux res charging is slowed down when the brake pipe is substantially higher than the aux res
0 commit comments