17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-13 03:07:40 +01:00

Merge pull request #260 from MaSzyna-EU07/fix/sx45-line-contactors-lamp

fix(cab): on the SU45 and SU46 the open line contactors lamp lights with the contactors opened by the pressure switch (eu07/maszyna#263)
This commit is contained in:
2026-11-07 20:22:53 +00:00
committed by GitHub
3 changed files with 124 additions and 1 deletions

View File

@@ -2461,9 +2461,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 pumps a joint oil and fuel pump switch works, those not started automatically, are all switched on