Review of #272. The closed line breaker used to mean there's traction
voltage, the undervoltage trip opening it without one. With
PantRequiresMain=Yes it closes on the battery and holds without voltage,
so everything that took Mains for "the main circuit is live" ran with the
pantographs down, lowered for a section, or under a dead catenary.
- MainCircuitPowered(): the line breaker closed, and on a vehicle with
PantRequiresMain and current collectors also the voltage at least MinV
(what the undervoltage trip takes). For every other vehicle it is Mains.
It feeds the converter (and through it the 110 V and a compressor on
it), a compressor on the main circuit, the heating from the main
circuit, the motor blowers, the blowers of the starting resistors, the
current of the series motors and the induction motor drive.
- The undervoltage relay of such a vehicle opens the line contactors, as
the line breaker opening did elsewhere: the camshaft goes back to zero
and the motors get no current, also not the generator current a closed
circuit without voltage gave. The relay picks up again with the voltage
back and the master controller at zero or the first position, so the
start begins anew instead of the camshaft running back up to the
position left on the controller.
Vehicles without the key are unchanged: the golden traces recorded before
the change compare exactly.
New optional .fiz key Cntrl.PantRequiresMain (default No, every existing
vehicle unchanged). With Yes, as on Czech-built locomotives:
- the line breaker closes on the low voltage circuits, without traction
voltage, and the undervoltage trip doesn't open it (overvoltage and the
other trips still do);
- a pantograph valve opens and stays open only while the vehicle's line
breaker is closed, so opening it drops the pantographs.
The AI (TController::PrepareEngine) closes the line breaker before raising
the pantographs for such a vehicle; the line breaker steps moved into
TController::close_line_breaker(). test::start_up() follows the same order.
Game data: to use it, PantRequiresMain=Yes goes on the Cntrl. line of
dynamic/pkp/ep05_v2/ep05.fiz, ep05v1.fiz and dynamic/cd/181_v2/181_cz1.fiz,
18x_pl.fiz (left for later, not part of this change). (#68)