mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 22:04:59 +01:00
feat(blackbox): the cab record holds the speed of the wheels, apart from the vehicle's when they slip
The speed of the cab record is the vehicle's. The speedometer, and a speed recorder's tape with it, shows the speed of the wheels as they turn, which runs away from it while they slip and drops to 0 while they are locked in a skid. It is added at the end of the record (194 bytes), where the readers skip what they don't know; the .dat tapes have it already, in their second column.
This commit is contained in:
@@ -172,14 +172,15 @@ record.
|
||||
|
||||
### 0x20 cab
|
||||
|
||||
The vehicle the user is in, every 0.1 s, also while the user looks around outside it. 190 bytes.
|
||||
The vehicle the user is in, every 0.1 s, also while the user looks around outside it. 194 bytes (190 in the
|
||||
files written before the speed of the wheels was added at the end).
|
||||
|
||||
| type | field |
|
||||
|---------|------------------------------------------------------------------------|
|
||||
| `f64` | t |
|
||||
| `u32` | number of the vehicle |
|
||||
| `dvec3` | position |
|
||||
| `f32` | speed [km/h], positive along the front of the vehicle |
|
||||
| `f32` | speed of the vehicle [km/h], positive along its front |
|
||||
| `f32` | acceleration along the track [m/s²] |
|
||||
| `f32` | odometer [km] |
|
||||
| `u8` | driver: 0 none, 1 the user, 2 the AI (the autopilot) |
|
||||
@@ -231,6 +232,7 @@ The vehicle the user is in, every 0.1 s, also while the user looks around outsid
|
||||
| `f32` | the clutch of a diesel's gearbox, 0 open .. 1 closed |
|
||||
| `f32` | the filling of a diesel's hydraulic torque converter, 0..1 |
|
||||
| `f32` | the highest brake cylinder pressure of the vehicles of the train [bar] |
|
||||
| `f32` | speed of the wheels [km/h], as the speedometer shows it, signed as the speed of the vehicle: apart from it while the wheels slip, 0 while they are locked in a skid |
|
||||
|
||||
The lights the train is to show follow from the movement and the two patterns after it: in a train run the head the pattern asked for,
|
||||
the usual one Pc 1 (both headlights and the upper one; Pc 2 is the left red marker with the right and the
|
||||
|
||||
Reference in New Issue
Block a user