Summary
The sequential gearbox shift logic controller handles all the driving assists and related systems when using a sequential gearbox, including the automatic clutch, throttle cut and shifting when driving in arcade mode.
It is an extension of the vehicle controller
and automatically gets called if a vehicle is equipped with a sequential transmission
.
File Info
|
|
Filename |
shiftLogic-sequentialGearbox.lua |
Path |
/lua/vehicle/controller/shiftLogic-sequentialGearbox.lua |
Usage type |
Specific to vehicleController |
JBeam Properties
When using arcade mode or clutch assist.
When using arcade mode or clutch assist.
Public Functions
Function name
gearboxBehaviorChanged
Description
Switches between arcade and realistic gearbox modes.
Description
Shifts the transmission up one gear.
Description
Shifts the transmission down one gear.
Function name
shiftToGearIndex
Description
Shifts the transmission to the selected gear.
Function name
getGearName
Description
Returns current gear index
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": {
"calculateOptimalLoadShiftPoints": true,
"shiftDownRPMOffsetCoef":1.20,
"aggressionHoldOffThrottleDelay":3,
"lowShiftDownRPM":[0,0,0,2000,2200,2200,2200,2200],
"lowShiftUpRPM":[0,0,3900,3800,3700,3700,3700],
"clutchLaunchStartRPM": 3000,
"clutchLaunchTargetRPM": 2000,
"ignitionCutTime": 0.09
},