17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-11 01:39:41 +01:00

AI braking: predict the ESt3 brake force from the distributor characteristic

This commit is contained in:
pwarszawski
2026-11-02 17:01:32 +01:00
parent bb43f559e8
commit 6374e2d32e
4 changed files with 17 additions and 0 deletions

View File

@@ -5091,6 +5091,7 @@ void TMoverParameters::ComputeTotalForce(double dt)
double TMoverParameters::BrakeForceR(double ratio, double velocity)
{
double press = 0;
ratio = Hamulec->GetBrakeRatio(ratio);
if (MBPM > 2)
{
press = MaxBrakePress[1] + (MaxBrakePress[3] - MaxBrakePress[1]) * std::min(1.0, (TotalMass - Mass) / (MBPM - Mass));