mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 23:17:56 +01:00
refactor(physics): the motion of the vehicle is private to it
The speed along the couplers, the location, the offsets from the track axis,
the accelerations, the distance counter and the distance moved since the last
check, the flat of the wheels and the truck hunting, the distance of the
derailment check, whether the vehicle is inside a consist and in the coupler
model, the analog demand of the integrated controller and the flow of the pipe
stabiliser are private to physics::Vehicle. TDynamicObject places and moves the
vehicle, the scenery puts road vehicles on their way and the contacts push them
through the operations (SetV(), SetLoc(), SetOffsetTrackH(), ...), and the
jolts of the track are ShakeVertically() and ShakeHorizontally(), the same
additions as before.
No change in behaviour: the golden traces recorded on dfb43c4f match bit for bit.
This commit is contained in:
+8
-8
@@ -273,17 +273,17 @@ WyslijNamiary([[maybe_unused]] TDynamicObject const *Vehicle)
|
||||
size_t j = Vehicle->asName.length();
|
||||
r.iPar[0] = i; // ilość danych liczbowych
|
||||
r.fPar[1] = Global.fTimeAngleDeg / 360.0; // aktualny czas (1.0=doba)
|
||||
r.fPar[2] = Vehicle->physics->Loc.X; // pozycja X
|
||||
r.fPar[3] = Vehicle->physics->Loc.Y; // pozycja Y
|
||||
r.fPar[4] = Vehicle->physics->Loc.Z; // pozycja Z
|
||||
r.fPar[5] = Vehicle->physics->V; // prędkość ruchu X
|
||||
r.fPar[2] = Vehicle->physics->Loc().X; // pozycja X
|
||||
r.fPar[3] = Vehicle->physics->Loc().Y; // pozycja Y
|
||||
r.fPar[4] = Vehicle->physics->Loc().Z; // pozycja Z
|
||||
r.fPar[5] = Vehicle->physics->V(); // prędkość ruchu X
|
||||
r.fPar[6] = Vehicle->physics->nrot * M_PI *
|
||||
Vehicle->physics->WheelDiameter; // prędkość obrotowa kóŁ
|
||||
r.fPar[7] = 0; // prędkość ruchu Z
|
||||
r.fPar[8] = Vehicle->physics->AccS; // przyspieszenie X
|
||||
r.fPar[9] = Vehicle->physics->AccN; // przyspieszenie Y //na razie nie
|
||||
r.fPar[10] = Vehicle->physics->AccVert; // przyspieszenie Z
|
||||
r.fPar[11] = Vehicle->physics->DistCounter; // przejechana odległość w km
|
||||
r.fPar[8] = Vehicle->physics->AccS(); // przyspieszenie X
|
||||
r.fPar[9] = Vehicle->physics->AccN(); // przyspieszenie Y //na razie nie
|
||||
r.fPar[10] = Vehicle->physics->AccVert(); // przyspieszenie Z
|
||||
r.fPar[11] = Vehicle->physics->DistCounter(); // przejechana odległość w km
|
||||
r.fPar[12] = Vehicle->physics->brakePipe.Pressure(); // ciśnienie w PG
|
||||
r.fPar[13] = Vehicle->physics->mainPipe.Pressure(); // ciśnienie w PZ
|
||||
r.fPar[14] = Vehicle->physics->brakes.cylinderPressure; // ciśnienie w CH
|
||||
|
||||
Reference in New Issue
Block a user