Shift Logic - Dummy

Summary

The dummy shift logic controller gets called if the vehicle has no compatible gearbox. It’s purpose is to have the same public properties and functions available as the other controllers so the vehicle can still be used.


File Info

Filename shiftLogic-dummy.lua
Path /lua/vehicle/controller/shiftLogic-dummy.lua
Usage type Specific to vehicleController

Public Functions

Function name
Parameters
Description
Function name
updateGearboxGFX
Parameters
dt
Description
Update’s the controllers properties with the engine’s data
Function name
getGearName
Parameters
Description
Returns an empty string
Function name
getGearPosition
Parameters
Description
Returns 0.
Function name
sendTorqueData
Parameters
Description
Sends torque and power related data to the UI.

Public Properties

Name
Description
Name
brake
Description
Brake input
Name
checkEngine
Description
Indicates if the engine is disabled.
Name
clutchRatio
Description
Indicates clutch input. 1 is fully engaged, 0 is fully disengaged.
Name
currentGearIndex
Description
Current gear index of the gearbox.
Name
energyStorages
Description
Energy storage(s) associated to the engine
Name
engineLoad
Description
Engine load
Name
engineThrottle
Description
Throttle input.
Name
engineTorque
Description
Engine combustion torque, before friction losses.
Name
flywheelTorque
Description
Engine output torque.
Name
gearboxHandling
Description
List containing many of the parameters which influence gearbox shifting behavior.
Name
gearboxTorque
Description
Gearbox output torque.
Name
idleRPM
Description
Engine idle RPM
Name
ignition
Description
Indicates that the ignition is on.
Name
inputValues
Description
List containing the brake, throttle and clutch values.
Name
isArcadeSwitched
Description
Indicates if the gearbox is in arcade mode.
Name
isEngineRunning
Description
Indicates the engine is running
Name
isSportModeActive
Description
Indicates if sport mode is active.
Name
maxRPM
Description
Engine maximum RPM
Name
oilTemp
Description
Oil temperature of the engine.
Name
rpm
Description
Current engine RPM
Name
shiftPreventionData
Description
List containing the slip threshholds to prevent shifting.
Name
shiftBehavior
Description
List containing the current optimal shiftpoints defined by the vehicle controller.
Name
smoothedValues
Description
List containing a smoothed version of some properties.
Name
smoothedAvgAVInput
Description
Smoothed angular velocity of the gearbox input (rad/s)
Name
throttle
Description
Throttle input
Name
timer
Description
List containing current time values
Name
timerConstants
Description
List containing target values for the different timers, as set in the jbeam
Name
waterTemp
Description
Coolant temperature of the engine.

Last modified: 7/8/2023 10:32

Any further questions?

Join our discord