Pneumatics System Controller
Top-level controller for vehicle pneumatic (air pressure) systems. Manages air compressors, pressure tanks, valves, and pneumatic actuators. Provides the foundation for air brakes, air suspension, and other pneumatic subsystems.
Top-level controller for vehicle pneumatic (air pressure) systems. Manages air compressors, pressure tanks, valves, and pneumatic actuators. Provides the foundation for air brakes, air suspension, and other pneumatic subsystems.
Public API
| Function | Description |
|---|---|
setBeamPressure(groupNames, pressure) | Directly sets a raw target pressure for one or more beam groups. |
setBeamPressureLevel(groupName, pressureName) | Switches a group to a specific target pressure level defined in JBeam. |
toggleBeamMinMax(groupNames) | Cycles the specified groups between their minimum and maximum pressure levels. |
module.initSounds(jbeamData) | dump(pressureBeamSoundData) |
module.resetSounds() | Resets sound state. |
module.isBeamGroupAtPressureLevel(groupName, levelName) | log("W", "pneumatics.isBeamGroupAtPressureLevel", "Can't find pressure beam group: "..groupName) |
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Identifies relevant JBeam beams and parses target pressure profiles. |
updateGFX(dt) | Main logic loop. Smoothly interpolates current beam pressures towards targets and manages inflation/deflation sound effects. |
module.reset() | Resets the controller to its initial state. |
See Also
- Pneumatic Actuators — Individual pneumatic actuator control
- Air Brakes — Pneumatic braking system
- Auto Level Suspension — Self-leveling air suspension
Player Controller
The main controller for the walking/unicycle character mode. Manages movement physics using PID-based stabilization on a ball, handles jumping, crouching, and camera-relative directional input. Provides compatibility variables for dashboard UI elements.
Power Steering Controller
Simulates power steering assist that reduces steering effort at low speeds and increases road feel at high speeds. Manages pump pressure, assist curves, and speed-sensitive steering weight.