Summary
The automatic gearbox shift logic controller handles the automatic shifting logic of the transmission, the different drive modes and torque converter lockup.
It is an extension of the vehicle controller
and automatically gets called if a vehicle is equipped with an automatic transmission
.
File Info
|
|
| Filename |
shiftLogic-automaticGearbox.lua |
| Path |
/lua/vehicle/controller/shiftLogic-automaticGearbox.lua |
| Usage type |
Specific to vehicleController |
JBeam Properties
A transmission with only manual modes will not shift automatically while in realistic shifting mode.
This can be used to simulate automatic transmissions with manual valving, as found on some racing vehicles.
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.
Set 0 to automatically calculate.
Will not occur in sport/manual mode. Set 1 to disable for older style mechanical gearboxes
Electrics
Indicates the position of the torque converter lockup clutch. 0 means it’s disengaged, while 1 means it’s fully locked.
Public Functions
Switches between arcade and realistic gearbox modes.
Switches to the next position on the gear lever.
Switches to the previous position on the gear lever.
Shifts the gear lever to the selected position.
Current gear the transmission is in.
Current position of the automatic shifter.
Changes the gearbox’s default forward mode.
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": {
"automaticModes":"PRND21",
"useSmartAggressionCalculation":false,
"calculateOptimalLoadShiftPoints": true,
"transmissionGearChangeDelay":2,
"gearboxDecisionSmoothingUp":0.5,
"gearboxDecisionSmoothingDown":0.5,
"lowShiftDownRPM":1100,
"lowShiftUpRPM":1900,
//"highShiftDownRPM":3100,
},
Vehicle controller section associated to a locking torque converter.
"vehicleController": {
"torqueConverterLockupRPM":1100,
"torqueConverterLockupMinGear":3,
},