18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 23:39:14 +01:00

Merge master into fix/et42-fans-compressor-lamps-et22-louvre

Resolves the MOVER.h conflict (both sides add independent helpers) so the
pull request builds run again.
This commit is contained in:
jerrrrycho
2026-11-08 03:11:17 +01:00
19 changed files with 827 additions and 101 deletions

View File

@@ -2473,9 +2473,15 @@ class TMoverParameters
{
return false == ControlPressureSwitch && (HasControlPressureSwitch || BrakePress < 1.0);
}
// whether the lamp of the open line contactors is lit, telling the start can be made
// whether the lamp of the open line contactors is lit. on the electric locomotives it tells the start can be made, so
// it goes out with the start cut off; on the diesel-electric ones (the SU45 and SU46 family) it just tells the
// contactors are open, whatever opened them: the master controller at 0, or the pressure switch (eu07/maszyna#263)
bool LineContactorsLampLit() const
{
if (EngineType == TEngineType::DieselElectric)
{
return false == StLinFlag;
}
return false == StLinFlag && MainCircuitLampsEnabled();
}
// whether the pneumatic louvres of the motor fans are still closed, the main reservoir short of the pressure that opens them
@@ -2485,6 +2491,13 @@ class TMoverParameters
}
// whether the devices the line contactors are interlocked with (LineContactorsInterlock) let them close
bool LineContactorsInterlockReleased() const;
// whether the cab command opening the main circuit opens it where the only cab switch of the circuit is the button
// closing it: on a diesel that's the starter button, and the command is the one way to stop an engine whose fuel pump
// starts on its own (eu07/maszyna#427). the other vehicles with such a button keep ignoring the command
bool MainCircuitOpensWithStarterOnly() const
{
return EngineType == TEngineType::DieselEngine || EngineType == TEngineType::DieselElectric;
}
// whether the pumps a joint oil and fuel pump switch works, those not started automatically, are all switched on
bool OilFuelPumpsEnabled() const
{