18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 17:25:00 +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:
maj00r
2026-11-14 00:48:18 +01:00
parent 03a3b4c09a
commit 7b7529e24e
5 changed files with 14 additions and 3 deletions

View File

@@ -205,6 +205,7 @@ void writer::cab(cab_sample const &Sample) {
out.f32(Sample.clutch);
out.f32(Sample.converter_fill);
out.f32(Sample.consist_brake_cylinder);
out.f32(Sample.wheel_speed_kmh);
emit(record::cab);
}