No description
Find a file
Jan-Peter v. Hunnius 7a1c37fc86 refactor: TUI multi-feed monitor with binary parsers
- Add ratatui/crossterm TUI replacing stdout data dump
- Add binary parsers for KSUDP RTCarInfo (port 9996) and Telemetry Tool (port 10101)
- Add shared binary_utils module for safe packet reading
- Add ring-buffer frequency calculation and feed health state machine
- Add parse_first_driver() to avoid unnecessary multi-driver allocation
- Add 27 unit tests (14 feed_state + 6 ksudp + 7 telemetry_tool)
- Move parsing outside mutex lock to minimize TUI contention
- Replace expect() on env var with graceful error handling
- Remove unused serde dependency
- Delete obsolete stats.rs and telemetry.rs
2026-06-04 08:48:35 +02:00
src refactor: TUI multi-feed monitor with binary parsers 2026-06-04 08:48:35 +02:00
.gitignore feat: multi-port UDP listener with data dump 2026-06-03 11:50:06 +02:00
Cargo.lock refactor: TUI multi-feed monitor with binary parsers 2026-06-04 08:48:35 +02:00
Cargo.toml refactor: TUI multi-feed monitor with binary parsers 2026-06-04 08:48:35 +02:00
README.md feat: initial rusty-telemetry UDP listener 2026-06-01 15:13:13 +02:00

rusty-telemetry

Sim racing telemetry receiver and analyzer. Phase 1 provides a simple UDP listener that receives JSON telemetry frames and prints them to stdout.

Build and Run

cargo run

The listener binds to 0.0.0.0:5005 and expects UDP packets containing JSON with the following structure:

{
  "timestamp": 1716123456.789,
  "speed_kmh": 245.3,
  "rpm": 8750,
  "gear": 6,
  "throttle": 0.85,
  "brake": 0.0,
  "steering": 0.12,
  "g_forces": { "x": 0.5, "y": -0.2, "z": 1.0 },
  "wheel_slip": [0.1, 0.1, 0.0, 0.0],
  "suspension_travel": [0.15, 0.14, 0.16, 0.15],
  "lap_time": 85.234,
  "lap_count": 5
}

Press Ctrl+C to stop.

Testing

Send a test packet from another terminal:

echo '{"timestamp":1.0,"speed_kmh":100.0,"rpm":5000,"gear":3,"throttle":0.5,"brake":0.0,"steering":0.0,"g_forces":{"x":0.0,"y":0.0,"z":1.0},"wheel_slip":[0.0,0.0,0.0,0.0],"suspension_travel":[0.1,0.1,0.1,0.1],"lap_time":60.0,"lap_count":1}' | nc -u -w0 127.0.0.1 5005

Future Plans

  • Telemetry parsers for multiple sim formats
  • Persistent storage (SQLite or similar)
  • Real-time dashboard / web API
  • Lap analysis and comparison tools