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

Reworked main brake handle usage by AI - it can use time-dependent handles now.

This commit is contained in:
Królik Uszasty
2019-03-21 17:25:05 +01:00
committed by tmj-fstate
parent 019a0c2cf6
commit a3af2453a0
3 changed files with 74 additions and 44 deletions

View File

@@ -169,6 +169,12 @@ static const int maxorders = 64; // ilość rozkazów w tabelce
static const int maxdriverfails = 4; // ile błędów może zrobić AI zanim zmieni nastawienie
extern bool WriteLogFlag; // logowanie parametrów fizycznych
static const int BrakeAccTableSize = 20;
static const int gbh_NP = -2; //odciecie w hamulcu ogolnym
static const int gbh_RP = 0; //jazda w hamulcu ogolnym
static const int gbh_FS = -1; //napelnianie uderzeniowe w hamulcu ogolnym
static const int gbh_MIN = -2; //minimalna pozycja w hamulcu ogolnym
static const int gbh_MAX = 6; //maksymalna pozycja w hamulcu ogolnym
//----------------------------------------------------------------------------
class TController {
@@ -216,7 +222,7 @@ private:
bool DecBrakeEIM();
bool IncSpeedEIM();
bool DecSpeedEIM();
bool BrakeLevelSet(double b);
void BrakeLevelSet(double b);
bool BrakeLevelAdd(double b);
void SpeedSet();
void SpeedCntrl(double DesiredSpeed);