Generic Gauges Controller
Universal instrument cluster backend that drives gauge displays for any vehicle. Processes vehicle telemetry (speed, RPM, temperatures, fuel, etc.) into normalized gauge values. Supports custom gauge modules for extensibility.
Universal instrument cluster backend that drives gauge displays for any vehicle. Processes vehicle telemetry (speed, RPM, temperatures, fuel, etc.) into normalized gauge values. Supports custom gauge modules for extensibility.
Public API
| Function | Description |
|---|---|
setUIMode(parameters) | Pushes a UI mode change (e.g., Sport vs Eco theme) to the HTML cluster. |
module.setParameters(parameters) | Sets the parameters. |
Hooks
| Hook | Description |
|---|---|
initSecondStage(jbeamData) | Parses the display configuration and initializes the HTML texture. Dynamically identifies which electrics, powertrain devices, and custom gauge modules need to be polled. |
updateGFX(dt) | Main polling loop. Aggregates data from all configured sources and streams a JSON packet to the HTML UI at the configured FPS. |
module.reset() | Resets the controller to its initial state. |
See Also
- ETK Gauges — ETK-specific gauge controller
- SBR Gauges — SBR-specific gauge controller
- Custom Modules — Gauge data modules
Analog Odometer
Controls a mechanical-style analog odometer display that accumulates distance traveled. Animates digit wheels with realistic rollover behavior and persists the total distance across vehicle resets.
Acceleration Data Gauge Module
Custom gauge module that provides G-force and acceleration data to instrument cluster displays. Calculates longitudinal and lateral G-forces for performance gauges.