Add logic for defining max analog tacho display speed

MaxTachoSpeed in Cntrl. section in fiz
This commit is contained in:
2025-01-06 20:27:25 +01:00
parent 2e26eb7e13
commit f86e2688ba
3 changed files with 12 additions and 1 deletions

View File

@@ -1191,6 +1191,7 @@ public:
int Lights[2][17]; // pozycje świateł, przód - tył, 1 .. 16
int ScndInMain{ 0 }; /*zaleznosc bocznika od nastawnika*/
bool MBrake = false; /*Czy jest hamulec reczny*/
double maxTachoSpeed = 0.0; // maksymalna predkosc na tarczce predkosciomierza analogowego
double StopBrakeDecc = 0.0;
bool ReleaseParkingBySpringBrake { false };
bool ReleaseParkingBySpringBrakeWhenDoorIsOpen{ false };

View File

@@ -10540,6 +10540,10 @@ void TMoverParameters::LoadFIZ_Cntrl( std::string const &line ) {
}
// mbrake
extract_value( MBrake, "ManualBrake", line, "" );
// maksymalna predkosc dostepna na tarczce predkosciomierza
extract_value(maxTachoSpeed, "MaxTachoSpeed", line, "");
// dynamicbrake
{
std::map<std::string, int> dynamicbrakes{