Hydraulic Suspension Controller
Controls hydraulic ride height adjustment systems. Manages pump pressure, valve states, and target heights for each corner of the vehicle. Used on lowriders, air-ride equipped vehicles, and utility vehicles with load-leveling.
Controls hydraulic ride height adjustment systems. Manages pump pressure, valve states, and target heights for each corner of the vehicle. Used on lowriders, air-ride equipped vehicles, and utility vehicles with load-leveling.
Public API
| Function | Description |
|---|---|
setGroupsPosition(groupNames, position, speedCoef) | Moves the specified suspension groups to a new target height. |
setGroupsBleed(groupNames, bleedCoef) | Simulates opening bypass valves to soften the suspension. |
setGroupsMomentaryIncrease(groupNames, enabled, speedCoef) | Used for high-speed suspension movement (e.g., jumping/bouncing). |
module.initSounds(jbeamData) | Initializes sound resources. |
module.resetSounds() | Resets sound state. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Identifies relevant beams and initializes group metadata and pump speeds. |
reset() | Restores all hydraulic beams to their original lengths and damping states. |
updateGFX(dt) | Manages pump and fluid release sound effects based on active flow rates. |
updateFixedStep(dt) | High-frequency loop that moves beam lengths towards targets at the configured pump speed. |
Usage Example
-- Raise the vehicle
controller.getController("hydraulicSuspension").raise()
-- Lower the vehicle
controller.getController("hydraulicSuspension").lower()See Also
- Pneumatics - Auto Level — Pneumatic self-leveling
- Adaptive Dampers — Electronic damper control
- Axle Lift — Axle raise/lower control
Vehicle Controllers Overview
This directory contains modular logic controllers that manage specific vehicle systems, safety electronics, and integrations.
Input/Output Demo Controller
A demonstration controller that showcases how to read vehicle inputs and write to electrics outputs. Useful as a learning reference for controller development — shows the input/output pipeline without complex logic.