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.
Updated CVT shift logic with improved ratio management and response characteristics. Second-generation implementation with better fuel efficiency optimization and sportier throttle response.
State Fields
| Field | Type | Description |
|---|---|---|
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValues | table | shared controller data. |
currentGearIndex, maxGearIndex, minGearIndex | number | transmission metadata. |
throttle, brake, clutchRatio, shiftingAggression, throttleInput | number | input and demand state. |
isArcadeSwitched, isSportModeActive | boolean | logic flags. |
smoothedAvgAVInput, rpm, idleRPM, maxRPM | number | speed telemetry. |
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorque | number | load telemetry. |
ignition, isEngineRunning | boolean | engine status. |
oilTemp, waterTemp, checkEngine | number | thermal diagnostics. |
energyStorages | table | fuel containers. |
Public API
| Function | Description |
|---|---|
shiftUp() | Manages PRND mode selection. |
getGearName() | returns active mode and gauge position. |
getState() | State persistence. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData, sharedFunctionTable) | Configures CVT target RPM based on engine torque curves. |
gearboxBehaviorChanged(behavior) | Selects the appropriate update loop. |
See Also
- Vehicle Controller — Parent controller
- CVT Gearbox v1 — Original CVT implementation
CVT Gearbox Shift Logic
Shift logic module for Continuously Variable Transmissions (CVT). Manages the target ratio based on power demand and efficiency, providing seamless ratio changes without discrete gear steps.
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.