18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 19:57:06 +01:00
Commit Graph

1 Commits

Author SHA1 Message Date
Hirek ea7a770d6c refactor(physics): the step of the doors belongs to the doors
The step of the doors of a vehicle (their lock, the requests to open and to
close from the passengers, from the cab and by themselves, the permits, the
movement of the doors and their steps, the timers of the doors that close
after a while) and the state of their closure signalling move from
physics::Vehicle into physics::door_data (Update(), Closure()). The vehicle
hands the doors what they need as plain values (door_data::StepInputs: its
speed, whether the doors have their voltage, whether it is a multiple unit,
whether passengers are getting in or out) and keeps only that.

The doors can now be tested on their own, without a vehicle
(test_door_component.cpp): opening and closing from the cab, no movement
without the voltage, the lock over its speed, the doors closing by themselves
unless the passengers are getting in.

No change in behaviour: the golden traces recorded on dfb43c4f match bit for bit.
2026-11-29 11:01:47 +01:00