18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 04:47:06 +01:00

refactor(physics): the definition of the brakes apart from their state

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.
This commit is contained in:
2026-11-29 10:36:09 +01:00
parent 447fe54f3d
commit 2d67e9b1a3
42 changed files with 485 additions and 481 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ void physics::Vehicle::SecuritySystemCheck(double dt)
bool physics::Vehicle::RadiostopSwitch(bool Switch)
{
bool EBS;
if (brakes.kind != TBrakeSystem::Individual && brakes.handlePositions > 0)
if (brakes.config.kind != TBrakeSystem::Individual && brakes.config.handlePositions > 0)
{
if (true == Switch && false == RadioStopFlag)