18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-21 13:15:02 +01:00

Keep the master standstill threshold, name the pressures

DirectionInitial() and PrepareDirection() go back to EU07_AI_NOMOVEMENT,
so a standing consist is left alone at load as it was. The thresholds the
brake charging cut-off works with get names instead of bare numbers, as
does the overcharge margin in the pipe pressure update.
This commit is contained in:
maj00r
2026-09-15 18:51:47 +02:00
parent 2531418d26
commit 0a7915ef58
4 changed files with 15 additions and 14 deletions

View File

@@ -89,6 +89,8 @@ const double g = 9.81; // przyspieszenie ziemskie
const double SandSpeed = 0.1; // ile kg/s}
/// <summary>2*pi shortcut.</summary>
const double Pirazy2 = 6.2831853071794f;
/// <summary>Brake pipe pressure above nominal that counts as an overcharge [bar].</summary>
const double PipeOverchargeMargin = 0.2;
//-- var, const, procedure ---------------------------------------------------
/// <summary>Truthy alias used by CheckLocomotiveParameters() to ignore a check failure.</summary>
@@ -1648,7 +1650,7 @@ class TMoverParameters
double Handle_OverloadPressureDecrease = 0.002; // predkosc spadku cisnienia przy asymilacji
/*max. cisnienie w cyl. ham., stala proporcjonalnosci p-K*/
double HighPipePress = 0.0;
double PipeOverchargeTime = 0.0; // [s]
double PipeOverchargeTime = 0.0; // czas ponad ciśnieniem nominalnym w PG [s]
double LowPipePress = 0.0;
double DeltaPipePress = 0.0;
/*max. i min. robocze cisnienie w przewodzie glownym oraz roznica miedzy nimi*/

View File

@@ -4789,7 +4789,7 @@ void TMoverParameters::UpdatePipePressure(double dt)
if (CompressedVolume < 0.0)
CompressedVolume = 0.0;
PipeOverchargeTime = ( PipePress > HighPipePress + 0.2 ? PipeOverchargeTime + dt : 0.0 );
PipeOverchargeTime = ( PipePress > HighPipePress + PipeOverchargeMargin ? PipeOverchargeTime + dt : 0.0 );
}
// *************************************************************************************************