API Referenceveextensionstech
Powertrain Sensor
Exposes powertrain device data (RPM, torque, gear, temperatures) as a pollable sensor. Provides structured access to engine and transmission state for external tools.
Exposes powertrain device data (RPM, torque, gear, temperatures) as a pollable sensor. Provides structured access to engine and transmission state for external tools via the TechCore API.
Public API
| Function | Signature | Description |
|---|---|---|
create | (data) | Creates a new powertrain sensor instance with specified device targets and update rate. |
setUpdateTime | (sensorId, GFXUpdateTime) | Sets the polling interval for the specified powertrain sensor. |
Hooks
| Hook | Description |
|---|---|
updateGFX | Collects current powertrain data at the configured update interval. |
Usage Example
-- Create a powertrain sensor
local id = extensions.tech_powertrainSensor.create({
updateTime = 0.05,
})See Also
- TechCore — External API that polls powertrain data
- Combustion Engine — Engine device reference
- Vehicle Performance Data — Performance capture
Platooning
Vehicle platooning support for convoy driving research. Maintains formation with a lead vehicle using V2V communication data for cooperative adaptive cruise control.
Roads Sensor
Provides information about nearby road segments including lane positions, road edges, speed limits, and surface types. Used for autonomous driving research.