Summary
The manual gearbox shift logic controller handles all the driving assists when using a manual gearbox, including the automatic clutch, automatic rev matching 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 manual transmission
.
File Info
|
|
| Filename |
shiftLogic-manualGearbox.lua |
| Path |
/lua/vehicle/controller/shiftLogic-manualGearbox.lua |
| Usage type |
Specific to vehicleController |
JBeam Properties
All these properties are vehicle controller properties specific to this shift logic.
When using arcade mode or clutch assist.
When using arcade mode or clutch assist.
When using arcade mode or clutch assist.
A value of 5 means it takes 1/5 seconds to complete the clutching.
When using arcade mode or clutch assist.
A value of 5 means it takes 1/5 seconds to complete the clutching.
When using arcade mode or the throttle assist.
Public Functions
Switches between arcade and realistic gearbox modes.
Shifts the transmission up one gear.
Shifts the transmission down one gear.
Shifts the transmission to the selected gear.
Returns current gear index
Sends torque and power related data to the UI.
Public Properties
Indicates if the engine is disabled.
Indicates clutch input. 1 is fully engaged, 0 is fully disengaged.
Current gear index of the gearbox.
Energy storage(s) associated to the engine
Engine combustion torque, before friction losses.
List containing many of the parameters which influence gearbox shifting behavior.
Indicates that the ignition is on.
List containing the brake, throttle and clutch values.
Indicates if the gearbox is in arcade mode.
Indicates the engine is running
Indicates if sport mode is active.
Oil temperature of the engine.
List containing the slip thresholds to prevent shifting.
List containing the current optimal shift points defined by the vehicle controller.
List containing a smoothed version of some properties.
Smoothed angular velocity of the gearbox input (rad/s)
List containing current time values
List containing target values for the different timers, as set in the jbeam
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": {
"transmissionShiftDelay":0.13,
"calculateOptimalLoadShiftPoints": true,
"shiftDownRPMOffsetCoef":1.17,
"aggressionHoldOffThrottleDelay":3,
"lowShiftDownRPM":[0,0,0,2000,2600,2600,2600,2600],
"lowShiftUpRPM":[0,0,4200,4200,4050,3850,3700],
"clutchLaunchStartRPM":3000,
"clutchLaunchTargetRPM":3000,
},