Vehicle Systems Coupling
Bridge interface for connecting vehicle subsystems to external control software. Allows external applications to read vehicle state and inject control commands, enabling hardware-in-the-loop (HIL) testing.
Bridge interface for connecting vehicle subsystems to external control software. Allows external applications to read vehicle state and inject control commands, enabling hardware-in-the-loop (HIL) testing.
Public API
| Function | Description |
|---|---|
initialSetup(config) | Sets up the UDP send/receive sockets and calculates synchronization window sizes for stable coupling. |
stopCoupling() | Closes network sockets and flushes any active debug CSV logs to disk. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Initializes the co-simulation bridge, ensuring the tech/vehicleSystemsCoupling extension is loaded to manage the lifecycle of the network sockets. |
update(dt) | The high-frequency synchronization loop. Manages the blocking/non-blocking packet exchange with Simulink, ensuring vehicle state is transmitted and control torques are received within the allowed timing window. |
updateWheelsIntermediate(dt) | Applies received co-simulation torques directly to the wheel rotators before the physics solver step. |
See Also
- Co-Simulation Coupling — Simulator-level co-simulation
- MQTT Output — MQTT telemetry
Tyre Barrier Controller
Controls tire barrier objects used in track/course design. Manages the physical behavior and reset logic for deformable tire barriers.
Vehicle Controller
The "brain" of the vehicle — maps player inputs (throttle, brake, clutch) to powertrain actions, manages shifting logic, and handles arcade vs. realistic driving modes. Coordinates between input processing, gear selection, engine control, and dashboard output.