What the .fiz gives about the brakes of a vehicle (the kinds of the brake
system, the valves and the handles, the cylinders and the rigging, the pipe
pressures, the delays and the modes it can be set to: 35 fields) moves into
physics::Braking::Config, held as brakes.config, set as the vehicle loads and
not changed after. Six fields that sat with the definition but change in the
run (the weighted pressures of the handle position, the universal buttons
pressed, the load setting, the control reservoir, the emergency valve, the
lock of the pipe) go with the state.
No change in behaviour: the golden traces recorded on dfb43c4f match bit for bit.
The blending of the electrodynamic and the electropneumatic brakes over a
consist driven by induction motors (the MED of the .fiz) moves out of
TDynamicObject into physics::ConsistBrakeBlending (physics/consistbraking.*).
It works on the physics of the vehicles alone, given in the order of the
consist; TDynamicObject::distributeInductionBraking() only lists them from the
occupied cab, as its loops walked them, and hands the result (the most
deceleration of the service braking) to the driver. The state of the blending
(the ED demand of the step before, the log of MEDLOGS/, the figures of the
debug screen) goes with it.
The code moves as it was: its arithmetic, its float and double conversions and
the order of its steps are kept. Nothing in the unit tests reached it before, as
they don't run TDynamicObject; now that it stands on its own, tests of it are
added (test_consist_braking.cpp): the full braking demand over the mass of an
Elf, the electropneumatic brake of every car standing, no demand at neutral.
The figures of the debug screen start at zero rather than uninitialised for a
vehicle that never led a consist.