DCT Gearbox Shift Logic
Shift logic module for Dual-Clutch Transmissions (DCT). Pre-selects the next gear on the alternate shaft for near-instantaneous shifts. Manages clutch engagement, pre-selection strategy, and launch control integration.
Shift logic module for Dual-Clutch Transmissions (DCT). Pre-selects the next gear on the alternate shaft for near-instantaneous shifts. Manages clutch engagement, pre-selection strategy, and launch control integration.
State Fields
| Field | Type | Description |
|---|---|---|
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValues | table | shared controller data buffers. |
currentGearIndex, maxGearIndex, minGearIndex | number | active gear range. |
throttle, brake, clutchRatio, shiftingAggression | number | user input state. |
isArcadeSwitched, isSportModeActive | boolean | logic status flags. |
smoothedAvgAVInput, rpm, idleRPM, maxRPM | number | speed state. |
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorque | number | load telemetry. |
ignition, isEngineRunning | boolean | engine health and state. |
oilTemp, waterTemp, checkEngine | number | thermal diagnostic state. |
energyStorages | table | linked fuel containers. |
Public API
| Function | Description |
|---|---|
shiftUp() | Handles PRNDS and manual mode requests, managing both internal shafts. |
setDefaultForwardMode(mode) | sets the default mode (D or S). |
getGearName() | returns the name (e.g., 'S4') and cluster UI position. |
getState() | serializes current transmission mode. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData, sharedFunctionTable) | Sets up DCT-specific clutch timing, launch RPMs, and gear shaft mappings. |
gearboxBehaviorChanged(behavior) | Configures update loops for pre-selection and shifting. |
See Also
- Vehicle Controller — Parent controller
- Automatic Gearbox — Traditional automatic
- Sequential Gearbox — Sequential manual
CVT Gearbox v2 Shift Logic
Updated CVT shift logic with improved ratio management and response characteristics. Second-generation implementation with better fuel efficiency optimization and sportier throttle response.
Dummy Shift Logic
A minimal shift logic implementation that provides the required interface without actual shifting behavior. Used for direct-drive vehicles, single-speed EVs, or testing scenarios.