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

2 Commits

Author SHA1 Message Date
jerrrrycho
c0bcdc23c7 fix: Sonar on the brake pipe sub-steps: no shadowed enumerator, const test helper, template callback 2026-11-16 17:35:42 +01:00
jerrrrycho
6ee2cc8eb8 fix: exchange the brake pipe air between vehicles after all of them stepped, in sub-steps
The air the brake hoses carry between the vehicles was taken explicitly inside each vehicle's step, at the
physics step of 0.01 s. Through the hose between two 14 m freight wagons (Spg 0.792, 11.5 l of pipe) one
step moved 11.8 l per bar, 2.06 times the 5.7 l that evens out the two pipes: the pipes overshot each other
in turns and settled into a pattern in which every distributor saw the pipe up to 0.28 bar off the pressure
left in it after the step. ESt3 valves charged at 5.0 bar saw 4.79 and lapped at the first stage, and the AI
of a standing freight train never got its brakes released (the report of eu07/maszyna#368).

The exchange now comes after every vehicle has stepped (vehicle_table::update_brake_pipes(), once per
physics iteration), for the vehicles which stepped their pipe, in as many sub-steps as keep the air a hose
carries in one below what evens out the pipes on its ends (3 for 14 m freight wagons, 2 for passenger
cars), each going through the vehicles in the order they step. The distributors see the pressure the pipe
holds, and an application reaches the end of the train as with a step of 0.001 s.
2026-11-16 13:24:06 +01:00