Summary
The cvt gearbox shift logic controller handles the gear ratio selection of the transmission and torque converter lockup.
It is an extension of the vehicle controller
and automatically gets called if a vehicle is equipped with an CVT transmission
.
File Info
|
|
Filename |
shiftLogic-cvtGearbox.lua |
Path |
/lua/vehicle/controller/shiftLogic-cvtGearbox.lua |
Usage type |
Specific to vehicleController |
JBeam Properties
A lower number increases smoothness but delays response to vehicle speed.
A lower number increases smoothness but delays response to vehicle speed.
Higher number causes faster downshifting decision when throttle is applied
Higher number causes faster upshifting decision when throttle is applied
CVT transmissions only support P, R, N and D modes.
This is based on the RPM of the converter output, so it will occur at the same speed even if the converter is heavily slipping.
Smaller numbers means the transmission will adjust it’s ratios more slowly.
The cvt will try to vary its ratio to achieve this engine speed when accelerating at full throttle.
The low load engine RPM target for the engine with cvt gearbox.
Electrics
Description
Indicates the position of the torque converter lockup clutch. 0 means it’s disengaged, while 1 means it’s fully locked.
Public Functions
Function name
gearboxBehaviorChanged
Description
Switches between arcade and realistic gearbox modes.
Description
Switches to the next position on the gear lever.
Description
Switches to the previous position on the gear lever.
Function name
shiftToGearIndex
Description
Shifts the gear lever to the selected position.
Function name
getGearName
Description
Current gear the transmission is in.
Function name
getGearPosition
Description
Current position of the automatic shifter.
Function name
sendTorqueData
Description
Sends torque and power related data to the UI.
Public Properties
Description
Indicates if the engine is disabled.
Description
Indicates clutch input. 1 is fully engaged, 0 is fully disengaged.
Description
Current gear index of the gearbox.
Description
Energy storage(s) associated to the engine
Description
Throttle input.
Description
Engine combustion torque, before friction losses.
Description
Engine output torque.
Description
List containing many of the parameters which influence gearbox shifting behavior.
Description
Gearbox output torque.
Description
Engine idle RPM
Description
Indicates that the ignition is on.
Description
List containing the brake, throttle and clutch values.
Description
Indicates if the gearbox is in arcade mode.
Description
Indicates the engine is running
Description
Indicates if sport mode is active.
Description
Engine maximum RPM
Description
Oil temperature of the engine.
Description
Current engine RPM
Description
List containing the slip thresholds to prevent shifting.
Description
List containing the current optimal shift points defined by the vehicle controller.
Description
List containing a smoothed version of some properties.
Description
Smoothed angular velocity of the gearbox input (rad/s)
Description
Throttle input
Description
List containing current time values
Description
List containing target values for the different timers, as set in the jbeam
Description
Coolant temperature of the engine.
Example Usage
A vehicle controller section with parameters specific to this sub controller, defined within a transmission’s jbeam.
"vehicleController": {
"automaticModes":"PRNDS",
"cvtHighRPM":5900,
"cvtLowRPM":600,
"torqueConverterLockupRPM": 1800,
"aggressionSmoothingDown":0.5,
"cvtAggression":0.1,
"aggressionHoldOffThrottleDelay":0,
},