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.
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.
State Fields
| Field | Type | Description |
|---|---|---|
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValues | table | shared controller state and configuration. |
currentGearIndex, maxGearIndex, minGearIndex | number | Gear metadata (CVT typically treats D as 1 and R as -1). |
throttle, brake, clutchRatio, shiftingAggression, throttleInput | number | Input and intent state. |
isArcadeSwitched, isSportModeActive | boolean | Logic status flags. |
smoothedAvgAVInput, rpm, idleRPM, maxRPM | number | Speed telemetry. |
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorque | number | Powertrain load telemetry. |
ignition, isEngineRunning | boolean | engine status. |
oilTemp, waterTemp, checkEngine | number | Thermal diagnostics. |
energyStorages | table | linked fuel sources. |
Public API
| Function | Description |
|---|---|
shiftUp() | Manages PRND mode selection. |
getGearName() | returns the active mode name and visual gauge position. |
getState() | State persistence for transmission mode. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData, sharedFunctionTable) | Configures CVT target RPM ranges (high/low) and initializes ratio smoothers. |
gearboxBehaviorChanged(behavior) | Selects the appropriate update loop for the CVT. |
See Also
- Vehicle Controller — Parent controller
- CVT Gearbox v2 — Updated CVT implementation
Automatic Gearbox Shift Logic
Shift logic module for traditional torque-converter automatic transmissions. Manages upshift/downshift points based on throttle position, vehicle speed, and driver aggression. Supports sport mode, kickdown, and manual override.
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.