18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 12:36:20 +01:00
Commit Graph

2 Commits

Author SHA1 Message Date
jerrrrycho
79616ba5a4 feat(scenery): the parameter H after the coupling of a vehicle prepares it for hauling
A vehicle of a trainset spawns in the pullee mode (MaSzyna-EU07/maszyna#64) with the parameter H
among the ones written after its coupling, on its own or with the others:

    node -1 0 EU160-001 dynamic pkp/vectron_v1 1293-107 wariant_7w 0 nobody 3.H 0 enddynamic
    ... 3.BG.H ...

The parameters are told by their first letter (B brakes, W wheels, T temperatures, L load); H was
free, and one a build doesn't know is skipped, so a scenery with it loads in the releases too, where
the vehicle is as before. The letters after the H are left for later.

The mode is entered once the vehicle has its starting state, so a standing one lets go of its hand
brake and its spring brake switch. A vehicle with the H has nobody driving it, whatever its crew
entry says (its cab can't be activated); a driver left out is written to the log.

Refs MaSzyna-EU07/maszyna#64
2026-11-19 01:58:56 +01:00
jerrrrycho
3633c254fc feat(physics): pullee mode, a vehicle prepared for being hauled dead in a train
A dead locomotive or unit in somebody else's train (hook and brake hose, coupling 3) brakes the
train today (MaSzyna-EU07/maszyna#64):

- one with the emergency brake of an inactive cab (InactiveCabFlag bit 1: of the test vehicles the
  Vectron, Dragon, Elf, Impuls and EN57AKL) vents the brake pipe for as long as it is in the train,
  since its cab is never activated. Behind an EU07 the pipe is empty in two seconds and stays so,
- the spring brake applies once the feed pipe of the vehicle, which is its own main reservoir, falls
  below MinFP: at once without air, and within 20 minutes of a cold start as the reservoir leaks down
  (EU47: 0.077 bar a minute, from 4.4 bar).

TMoverParameters::PulleeMode, set with PulleeModeSwitch(), is the vehicle prepared for hauling.
In the mode it:

- vents the brake pipe for nothing of its own (inactive cab, vigilance and cab signalling,
  radio-stop, the spring brake of SpringBrakeDriveEmergencyVel); the alarm chain, which a train
  parting sets, still does,
- gets no force from its spring brake, whatever air its cylinder has,
- has its driver's valve cut out and its local brake released, whatever the handles show. The
  distributor stays on the brake pipe: it brakes and releases with the train,
- keeps its battery off and takes no cab: BatterySwitch(true) and CabActivisation() are refused,
  and the BatterySwitch and CabActivisation commands of a train's driver pass through it.

Entering the mode lets go of the hand brake and of the spring brake switch and switches the battery
off; a vehicle with an active cab can't enter it. Leaving it gives the controls back and the spring
brake as its cylinder has it.

Nothing sets the mode yet, and a vehicle not in it does what it did.

Refs MaSzyna-EU07/maszyna#64
2026-11-19 01:58:42 +01:00