16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 06:39:18 +02:00

Added emergency brake to main controller; additional limit for AI when hint factor for braking is too low

This commit is contained in:
Królik Uszasty
2020-10-12 21:49:01 +02:00
parent 86858cbc98
commit 5d9c14fdf9
4 changed files with 25 additions and 9 deletions

View File

@@ -3170,8 +3170,9 @@ bool TDynamicObject::Update(double dt, double dt1)
(LBR < 0.01);
}
auto Fzad = amax * LBR * masa;
if ((MoverParameters->BrakeCtrlPos == MoverParameters->Handle->GetPos(bh_EB))
&& (MoverParameters->eimc[eimc_p_abed] < 0.001))
if (((MoverParameters->BrakeCtrlPos == MoverParameters->Handle->GetPos(bh_EB))
&& (MoverParameters->eimc[eimc_p_abed] < 0.001)) ||
(MoverParameters->EmergencyValveFlow > 0))
Fzad = amax * masa; //pętla bezpieczeństwa - pełne służbowe
if ((MoverParameters->ScndS) &&
(MoverParameters->Vel > MoverParameters->eimc[eimc_p_Vh1]) && (FmaxED > 0))