mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 19:09:20 +02:00
Springbrake manometer and indicators
This commit is contained in:
committed by
tmj-fstate
parent
414ef2e362
commit
2b1fe26265
15
Train.cpp
15
Train.cpp
@@ -5899,6 +5899,8 @@ bool TTrain::Update( double const Deltatime )
|
||||
btLampkaBrakeProfileG.Turn( TestFlag( mvOccupied->BrakeDelayFlag, bdelay_G ) );
|
||||
btLampkaBrakeProfileP.Turn( TestFlag( mvOccupied->BrakeDelayFlag, bdelay_P ) );
|
||||
btLampkaBrakeProfileR.Turn( TestFlag( mvOccupied->BrakeDelayFlag, bdelay_R ) );
|
||||
btLampkaSpringBrakeActive.Turn( mvOccupied->SpringBrake.IsActive );
|
||||
btLampkaSpringBrakeInactive.Turn( !mvOccupied->SpringBrake.IsActive );
|
||||
// light indicators
|
||||
// NOTE: sides are hardcoded to deal with setups where single cab is equipped with all indicators
|
||||
btLampkaUpperLight.Turn( ( mvOccupied->iLights[ end::front ] & light::headlight_upper ) != 0 );
|
||||
@@ -5947,6 +5949,8 @@ bool TTrain::Update( double const Deltatime )
|
||||
btLampkaBrakeProfileG.Turn( false );
|
||||
btLampkaBrakeProfileP.Turn( false );
|
||||
btLampkaBrakeProfileR.Turn( false );
|
||||
btLampkaSpringBrakeActive.Turn( false );
|
||||
btLampkaSpringBrakeInactive.Turn( false );
|
||||
btLampkaMaxSila.Turn( false );
|
||||
btLampkaPrzekrMaxSila.Turn( false );
|
||||
btLampkaRadio.Turn( false );
|
||||
@@ -7572,6 +7576,8 @@ void TTrain::clear_cab_controls()
|
||||
btLampkaBrakeProfileG.Clear();
|
||||
btLampkaBrakeProfileP.Clear();
|
||||
btLampkaBrakeProfileR.Clear();
|
||||
btLampkaSpringBrakeActive.Clear();
|
||||
btLampkaSpringBrakeInactive.Clear();
|
||||
btLampkaSprezarka.Clear();
|
||||
btLampkaSprezarkaB.Clear();
|
||||
btLampkaSprezarkaOff.Clear();
|
||||
@@ -7979,6 +7985,8 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co
|
||||
{ "i-brakeprofileg:", btLampkaBrakeProfileG },
|
||||
{ "i-brakeprofilep:", btLampkaBrakeProfileP },
|
||||
{ "i-brakeprofiler:", btLampkaBrakeProfileR },
|
||||
{ "i-springbrakeactive:", btLampkaSpringBrakeActive },
|
||||
{ "i-springbrakeinactive:", btLampkaSpringBrakeInactive },
|
||||
{ "i-braking-ezt:", btLampkaHamowanie1zes },
|
||||
{ "i-braking-ezt2:", btLampkaHamowanie2zes },
|
||||
{ "i-compressor:", btLampkaSprezarka },
|
||||
@@ -8334,6 +8342,13 @@ bool TTrain::initialize_gauge(cParser &Parser, std::string const &Label, int con
|
||||
gauge.Load(Parser, DynamicObject, 0.1);
|
||||
gauge.AssignDouble(&mvControlled->PantPress);
|
||||
}
|
||||
else if (Label == "springbrakepress:")
|
||||
{
|
||||
// manometr cylindra hamulca sprężynowego
|
||||
auto &gauge = Cabine[Cabindex].Gauge(-1); // pierwsza wolna gałka
|
||||
gauge.Load(Parser, DynamicObject, 0.1);
|
||||
gauge.AssignDouble(&mvOccupied->SpringBrake.SBP);
|
||||
}
|
||||
else if ((Label == "compressor:") || (Label == "compressorb:"))
|
||||
{
|
||||
// manometr sprezarki/zbiornika glownego
|
||||
|
||||
Reference in New Issue
Block a user