Summary
The DCT gearbox shift logic controller handles all the shifting related function of the gearbox, including the different gearbox modes, gear pre-selection, rev matching, etc.
It is an extension of the vehicle controller
and automatically gets called if a vehicle is equipped with a DCT transmission
.
File Info
|
|
Filename |
shiftLogic-dctGearbox.lua |
Path |
/lua/vehicle/controller/shiftLogic-dctGearbox.lua |
Usage type |
Specific to vehicleController |
JBeam Properties
Electrics
Description
Indicates the position of the clutch on the first transmission shaft. 0 means it’s disengaged, while 1 means it’s fully engaged.
Description
Indicates the position of the clutch on the second transmission shaft. 0 means it’s disengaged, while 1 means it’s fully engaged.
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
setDefaultForwardMode
Description
Changes the gearbox’s default forward mode.
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":"PRNDSM",
"calculateOptimalLoadShiftPoints": true,
"shiftDownRPMOffsetCoef":1.2,
"aggressionHoldOffThrottleDelay":3,
"lowShiftDownRPM":[0,0,0,2200,2500,2500,25002500],
"lowShiftUpRPM":[0,0,4300,4200,4050,4000,3800],
"clutchLaunchStartRPM": 3500,
"clutchLaunchTargetRPM": 4000,
"autoDownShiftInM": false,
},