API Referenceveprotocols
OutGauge Protocol
Module defined in `lua/vehicle/protocols/outgauge.lua`. Implements the industry-standard OutGauge protocol (originally from LiveForSpeed) for external dashboards and hardware gauges.
Module defined in lua/vehicle/protocols/outgauge.lua. Implements the industry-standard OutGauge protocol (originally from LiveForSpeed) for external dashboards and hardware gauges.
Exports
Functions
getStructDefinition() (callable)
- Description: Returns the C-style struct definition.
- Packet Fields:
rpm, speed, turbo, engTemp, fuel: Basic engine metrics.gear: Current gear index.throttle, brake, clutch: User inputs.dashLights: Bitmask of available dashboard indicators.showLights: Bitmask of currently active indicators (signals, highbeam, ABS, etc.).
fillStruct(o, dtSim) (callable)
- Description: Populates the packet primarily using values from
electrics.values.
isPhysicsStepUsed() (callable)
- Description: Returns
false. This protocol runs on the graphics step for better performance.
Related
electrics: Source of most telemetry data.
module.reset()
- Description: Resets the module state.
- @context:
any| @performance:low
module.getAddress()
- Description: Returns the address.
- @context:
any| @performance:low
module.getPort()
- Description: Returns the port.
- @context:
any| @performance:low
module.getMaxUpdateRate()
- Description: Returns the max update rate.
- @context:
any| @performance:low
MotionSim Protocol
Module defined in `lua/vehicle/protocols/motionSim.lua`. Provides high-frequency telemetry data specifically designed for motion simulator platforms.
Tech Utilities Overview
The `tech/` directory (at the top-level of `lua/vehicle/`) provides specialized utility functions for advanced vehicle analysis, often used by external research tools or the Tech sensor suite.