How reakt-sh/reaktor-driver works
REAKTOR is a test-vehicle control system: the onboard Python connector discovers serial devices, opens the driver and sensors, and exposes motor control while collecting status, power, and GNSS data for storage or live broadcast. The Arduino driver handles vehicle I/O and motor behavior. The graph preserves these product stages and the documented manual controls, display, and power-meter/GPS capabilities. Source evidence is sampled mainly from connector code; driver internals and several listed modules are unsampled, so unsupported links are omitted.
Main entry points: control_center.py Control Center · motor/connection.py Motor Connection · gnss/connection.py GNSS Connection · main.ino Arduino Driver
Components 23
Onboard Connector
- Control Center
connector/connector/control_center.py - Serial Discovery
connector/connector/util/device_helper.py - Motor Connection
connector/connector/motor/connection.py - Motor Protocol
connector/connector/motor/protocol.py - Vehicle Status
connector/connector/motor/data.py - Session Storage
connector/connector/control_center.py - Live Data Server
connector/connector/util/live_data_server.py
Sensor Inputs
- Power Connection
connector/connector/power/connection.py - Power Protocol
connector/connector/power/protocol.py - Power Readings
connector/connector/power/data.py - GNSS Connection
connector/connector/gnss/connection.py - Position Data
connector/connector/gnss/data.py
Vehicle Driver
- Arduino Driver
driver/src/main.ino - Drive Modes
driver/include/mode.h - Manual Inputs
driver/src/switches.ino - Throttle
driver/src/throttle.ino - Driver Display
driver/src/panel.ino
Shared Runtime
- Serial Transport
connector/connector/shared/serial_connection.py - Data Provider
connector/connector/shared/data_provider.py
Other components
- Control Client
- GPS Service
- Power Meter
- Motor Controller
Connections 29
- Control Client → Control Center: uses API
- Control Center → Serial Discovery: finds ports
connector/connector/control_center.py - Control Center → Motor Connection: opens driver
connector/connector/control_center.py - Control Center → Power Connection: opens sensor
connector/connector/control_center.py - Control Center → GNSS Connection: opens receiver
connector/connector/control_center.py - Control Center → Motor Connection: registers status
connector/connector/control_center.py - Control Center → Power Connection: reads snapshot
connector/connector/control_center.py - Control Center → GNSS Connection: reads snapshot
connector/connector/control_center.py - Control Center → Session Storage: writes session
connector/connector/control_center.py - Control Center → Live Data Server: broadcasts data
connector/connector/control_center.py - Control Client → Motor Connection: sends controls
- Motor Connection → Motor Protocol: delegates messages
connector/connector/motor/connection.py - Motor Protocol → Serial Transport: reads and sends
connector/connector/motor/protocol.py - Motor Protocol → Vehicle Status: decodes status
connector/connector/motor/protocol.py - Motor Connection → Data Provider: publishes updates
- Power Connection → Power Protocol: delegates messages
connector/connector/power/connection.py - Power Protocol → Serial Transport: reads and sends
connector/connector/power/protocol.py - Power Protocol → Power Readings: decodes readings
connector/connector/power/protocol.py - Power Connection → Data Provider: publishes updates
- GNSS Connection → GPS Service: receives GPS data
connector/connector/gnss/connection.py - GNSS Connection → Position Data: creates positions
connector/connector/gnss/connection.py - GNSS Connection → Data Provider: publishes updates
- Arduino Driver → Drive Modes: uses drive modes
- Manual Inputs → Drive Modes: sets mode
- Throttle → Arduino Driver: provides input
- Arduino Driver → Driver Display: updates display
- Arduino Driver → Motor Controller: controls motor
- Control Center → Power Meter: connects by serial
- Motor Connection → Arduino Driver: communicates serially