Airplane Control Surfaces
Controls aerodynamic flight surfaces (ailerons, elevators, rudder, flaps) for airplane-type vehicles. Maps pilot inputs to control surface deflections and manages trim settings.
Controls aerodynamic flight surfaces (ailerons, elevators, rudder, flaps) for airplane-type vehicles. Maps pilot inputs to control surface deflections and manages trim settings.
Public API
| Function | Description |
|---|---|
module.toggleTrimMode() | Toggles trim mode. |
module.setTrimValue(input, value) | Sets the trim value. |
Hooks
| Hook | Description |
|---|---|
updateGFX(dt) | Updates surface positions based on pitch, roll, and yaw inputs. |
module.init(jbeamData) | Initializes the controller from JBeam data. |
Usage Example
-- Set flap position
controller.getController("airplaneSurfaces").setFlaps(0.5)See Also
- Control Modes — Input mapping profiles
- Vehicle Controller — Main vehicle control
Advanced Coupler Control
Manages automated coupling and decoupling of trailer hitches and tow connections. Handles coupler state machines, latch detection, and electrics integration for advanced towing setups.
Axle Lift Controller
Controls hydraulic or pneumatic axle lift mechanisms that raise/lower individual axles. Commonly used on multi-axle trucks to reduce tire wear when unloaded or improve maneuverability.