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

Preparation for rework of main brake handle usage by AI

This commit is contained in:
Królik Uszasty
2019-03-21 15:27:10 +01:00
committed by tmj-fstate
parent 3f12f9231f
commit 019a0c2cf6
2 changed files with 53 additions and 1 deletions

View File

@@ -216,6 +216,8 @@ private:
bool DecBrakeEIM();
bool IncSpeedEIM();
bool DecSpeedEIM();
bool BrakeLevelSet(double b);
bool BrakeLevelAdd(double b);
void SpeedSet();
void SpeedCntrl(double DesiredSpeed);
void SetTimeControllers(); /*setting state of time controllers depending of desired action*/
@@ -310,6 +312,7 @@ private:
double ReactionTime = 0.0; // czas reakcji Ra: czego i na co? świadomości AI
double fBrakeTime = 0.0; // wpisana wartość jest zmniejszana do 0, gdy ujemna należy zmienić nastawę hamulca
double BrakeChargingCooldown {}; // prevents the ai from trying to charge the train brake too frequently
double BrakeCtrlPosition = 0.0; // intermediate position of main brake controller
double LastReactionTime = 0.0;
double fActionTime = 0.0; // czas używany przy regulacji prędkości i zamykaniu drzwi
double m_radiocontroltime{ 0.0 }; // timer used to control speed of radio operations