AWD Control Component
All-wheel-drive torque distribution control component. Adjusts front/rear torque split based on supervisor commands to optimize traction and stability. Works with active center differentials and transfer cases.
All-wheel-drive torque distribution control component. Adjusts front/rear torque split based on supervisor commands to optimize traction and stability. Works with active center differentials and transfer cases.
State Fields
| Field | Type | Description |
|---|---|---|
isActive, isActingAsYC | boolean | Status flags. |
Public API
| Function | Description |
|---|---|
actAsYawControl(measuredYaw, expectedYaw, yawDifference, bodySlipAngle, dt) | Dynamically overrides AWD locking parameters (overrideMin/overrideMax) to stabilize the vehicle during oversteer. |
registerCMU(cmu) | Links to the CMU. |
module.setDebugMode(debugEnabled) | Sets the debug mode. |
module.shutdown() | Shuts down the module and cleans up resources. |
module.setParameters(parameters) | Sets the parameters. |
module.setConfig(configTable) | Sets the config. |
module.getConfig() | Returns the config. |
Hooks
| Hook | Description |
|---|---|
initSecondStage(jbeamData) | Registers itself with tractionControl and yawControl supervisors. Selects the AWD control strategy (e.g., 'rearMain', 'frontMain'). |
module.initLastStage(jbeamData) | Final-stage initialization after all controllers and powertrains are ready. |
module.reset() | Resets the controller to its initial state. |
module.updateGFX(dt) | Per-frame update for visual state and UI synchronization. |
See Also
- Traction Control — Traction supervisor
- Active Center Diff Lock — Center diff locking
- 4WD — 4WD mode selection
Aero Control Component
Active aerodynamics control component for the driving dynamics system. Adjusts active aero elements (spoilers, flaps, diffusers) based on supervisor commands to influence vehicle balance and stability.
Brake Control Component
Individual wheel brake control component for driving dynamics interventions. Applies targeted brake pressure to specific wheels as commanded by traction or yaw control supervisors to correct slip or yaw errors.