mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-25 04:19:13 +01:00
feat: interlock the line contactors with the section fans, own-converter lamp (eu07/maszyna#460)
On the ET42 the fans of each section run off that section's converter: the section fan switch of the cab is bound to converterlocal_sw. The line contactors of a section with its fans switched off must not close. - New optional Cntrl. key LineContactorsInterlock=Converter|MotorBlowers. MotorConnectorsCheck() then also needs the vehicle's own converter (ConverterFlag, not the trainset's shared 110 V), or all its motor blowers, running. It is checked per vehicle, so only that section stays off, and switching the fans off on the way opens its contactors. Without the key nothing changes. - New optional lamp i-converteraoff:, lit while the converter of the vehicle with the cab is off. i-converteroff: follows the shared 110 V, so with one ET42 section's fans off it stayed dark. i-converterboff: already covers the other section. SVN data, to change once this is released (old data works as before): - dynamic/pkp/et42_v2/112e-a.fiz, 112e-b.fiz: LineContactorsInterlock=Converter in the Cntrl. line. - dynamic/pkp/et42_v2/112e-a.mmd.inc, 112e-b.mmd.inc: i-converter: nadm_przetw -> i-converteraoff: nadm_przetw, i-converterb: nadm_przetw_b -> i-converterboff: nadm_przetw_b, i-compressor: sprezarka -> i-compressoroff: sprezarka, i-compressorb: sprezarka_b -> i-compressorboff: sprezarka_b (the compressor "off" lamps already light with the compressor switched off or stopped by its pressure governor). (eu07/maszyna#460)
This commit is contained in:
@@ -279,6 +279,16 @@ enum class operation_t
|
||||
/// <summary>Disable button release transition.</summary>
|
||||
disable_off,
|
||||
};
|
||||
/// <summary>What else the line contactors of a vehicle need before they can close (LineContactorsInterlock in the Cntrl. section).</summary>
|
||||
enum class line_contactors_interlock
|
||||
{
|
||||
/// <summary>Nothing more, the legacy behaviour.</summary>
|
||||
none,
|
||||
/// <summary>The converter of the vehicle itself running, where it drives the traction motor fans (ET42).</summary>
|
||||
converter,
|
||||
/// <summary>The traction motor blowers of the vehicle running.</summary>
|
||||
motor_blowers
|
||||
};
|
||||
/// <summary>Auto-start method for ancillary devices (mutually exclusive).</summary>
|
||||
enum class start_t
|
||||
{
|
||||
@@ -2152,6 +2162,7 @@ class TMoverParameters
|
||||
start_t GroundRelayStart{start_t::manual}; // relay activation method
|
||||
bool StLinFlag = false; /*!o styczniki liniowe*/
|
||||
bool StLinSwitchOff{false}; // state of the button forcing motor connectors open
|
||||
line_contactors_interlock LineContactorsInterlock{line_contactors_interlock::none}; // what else the line contactors need to close
|
||||
bool ResistorsFlag = false; /*!o jazda rezystorowa*/
|
||||
double RventRot = 0.0; /*!s obroty wentylatorow rozruchowych*/
|
||||
double PantographVoltage{0.0}; // voltage supplied to pantographs
|
||||
@@ -2466,6 +2477,8 @@ class TMoverParameters
|
||||
{
|
||||
return false == StLinFlag && MainCircuitLampsEnabled();
|
||||
}
|
||||
// whether the devices the line contactors are interlocked with (LineContactorsInterlock) let them close
|
||||
bool LineContactorsInterlockReleased() const;
|
||||
// whether the pumps a joint oil and fuel pump switch works, those not started automatically, are all switched on
|
||||
bool OilFuelPumpsEnabled() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user