16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 08:09:19 +02:00

Build 170823. tweaks to AI brake handling

This commit is contained in:
tmj-fstate
2017-08-24 03:12:04 +02:00
parent a41a666184
commit 42aab52038
4 changed files with 78 additions and 55 deletions

View File

@@ -369,6 +369,9 @@ class TController
void TableTraceRoute(double fDistance, TDynamicObject *pVehicle = nullptr);
void TableCheck(double fDistance);
TCommandType TableUpdate(double &fVelDes, double &fDist, double &fNext, double &fAcc);
// modifies brake distance for low target speeds, to ease braking rate in such situations
float
braking_distance_multiplier( float const Targetvelocity );
void TablePurger();
public:
std::size_t TableSize() const { return sSpeedTable.size(); }