Using the new Traction Control and Anti-Lock Brake system
In updated 2022-2, a new TC and ABS system was introduced, this allows you to control the TC system slip and power cut, and changes the way ABS works.
Boolean(Bool) = 0 or 1
Integer(Int) = 1, 2, 3, 4, 5, 6, etc
Float = 1.234124, 4.124124, etc
HDV
New HDV lines:
[CONTROLS]
Name | Type | Description | Example |
---|---|---|---|
OnboardTractionControlPowerCut | Bool | Whether the car has onboard power cut mapping. Default 0 (false), recommended is to see if the car has this in real life | OnboardTractionControlPowerCut=0 |
OnboardTractionControlSlipAngle | Bool | Whether the car has onboard slip angle mapping. Default 0 (false), recommended is to see if the car has this in real life | OnboardTractionControlSlipAngle=1 |
LinkPowerCutMapToTcMap | Bool | Whether the power cut map is linked to, and therefore controlled by, the main TC map. Default 0 (false), recommended is true if the onboard power cut is false | LinkPowerCutMapToTcMap=0 |
LinkSlipAngleMapToTcMap | Bool | Whether the slip angle map is linked to, and therefore controlled by, the main TC map. Default 0 (false), recommended is true if the onboard slip angle is false (if the car has traction control based on slip angle, otherwise false) | LinkSlipAngleMapToTcMap=1 |
TractionControlType | Bool | The TC system to use. 0=gripfract based (old), 1=slip based (new). Default 0 | TractionControlType=1 |
TractionControlLongSlipType | Bool | The longitudinal slip used by the main TC controller, 0=slip ratio, 1=wheel spin (the long slip can be disabled by setting the map to 0). Default 0, Recommended: 0 in case there is no data on which to use | TractionControlLongSlipType=0 |
TractionControlCutMethod | Bool | The power cut method to be used by TC (only for new systems). 0=throttle, 1=fuel. Default 0 | TractionControlCutMethod=0 |
TractionControlEngineSpeed | Int | The minimal engine rev speed (rpm) for TCS to work (this is to prevent bogging down or even stalling). Default 0, Recommended: 'idle speed' | TractionControlEngineSpeed=1500 |
TractionControlMinSpeed | Int | The minimal vehicle speed for TCS to work (in kph). Siimulate the wheel sensors not being reliable at low speeds, which is actually an issue in the sim. Setting it to 1 will not help because when the car is rolling on the clutch is can get to 1 kph and still have unreliable speeds. Default 5, Recommended: ~5. | TractionControlMinSpeed=5 |
TractionControlMaxSpeed | Int | The maximum vehicle speed for TCS to work (in kph) (simulate the wheel sensors not being reliable at high speeds). At 0 this will be ignored. Default 0 | TractionControlMaxSpeed=0 |
TractionControlPowerCutTime | Float | The length of a power cut when TCS is active. (only for new systems) (in seconds). If this is 0 it will cut for just one frame. Default 0 | TractionControlPowerCutTime=0.02 |
TractionControlGearBasedReductionMult | Float | The amount TC cuts the power is dependent on the current gear ratio / first gear ratio. The multiplier controls how much this is of influence. 0=full influence, 1=no influence (same cut for every gear). Default 0, Recommended: 0.5 | TractionControlGearBasedReductionMult=0.5 |
TractionControlMapMax | Int | The assumed maximum of the traction control map, does not have to be equal to the actual maximum. Default 0=actual map maximum, Recommended: 1 (makes it easier to calculate the values) | TractionControlMapMax=1 |
TCPowerCutMapMax | Int | The assumed maximum of the TC power cut map, does not have to be equal to the actual maximum. Default 0=actual map maximum, Recommended: 1 | TCPowerCutMapMax=1 |
TCSlipAngleMapMax | Int | The assumed maximum of the TC slip angle map, does not have to be equal to the actual maximum. Default 0=actual map maximum, Recommended: 1 | TCSlipAngleMapMax=1 |
TCPowerCutMapRange | Int, Float, Int | (range, setting, special) Onboard map for the power cut aggression. Power cut is measured from 0-1, 0 is no power cut (TC off), 1 is full power cut. | TCPowerCutMapRange=(0.0,0.125,9) |
TCSlipAngleMapRange | Int, Float, Int | (range, setting, special) Onboard map for the target slip angle. Slip angle is measured in radians, optimum slip angle is 6-10 degrees (~0.1-~0.17 rad). Map range is recommended to be from more than 10 degrees to less than 6 (maybe as low as 1 or 2 for rainy weather). | TCSlipAngleMapRange=(0,0.025,9) |
ABSType | Int | Somewhat replacement of ABS4Wheel, an indicator of which ABS to use. 0-(old style) single pulse, 1-4wheel ABS, 2-(new) Four-channel four-sensor ABS. Defaults to -1, which will look at the value of ABS4Wheel. Default -1 | ABSType=2 |
ABSSampleRate | Int | The sample rate of the system. Defaults to the physics rate (0=physics rate as well). Default is physics rate (400hz), recommended: 40 | ABSSampleRate=40 |
ABSReleasedPressureMultiplierFront | Bool | A multiplier for the brake pressure for how much it should be released (0 is a full release, 1 is full pressure) for the front axle. Default 0, recommended: 0 | ABSReleasedPressureMultiplierFront=0 |
ABSReappliedPressureMultiplierFront | Bool | A multiplier for the brake pressure after ABS applies the brakes (0 is a full release, 1 is full pressure), for the front axle. Default 1, recommended 1 | ABSReappliedPressureMultiplierFront=1 |
ABSReleasedPressureMultiplierRear | Bool | A multiplier for the brake pressure for how much it should be released (0 is a full release, 1 is full pressure), for the rear axle. Default 0, recommended 0 | ABSReleasedPressureMultiplierRear=0 |
ABSReappliedPressureMultiplierRear | Bool | A multiplier for the brake pressure after ABS applies the brakes (0 is a full release, 1 is full pressure), for the rear axle. Default 1, recommended 1 | ABSReappliedPressureMultiplierRear=1 |
ABSMinSpeedKph | Int | The minimal vehicle speed for ABS to intervene. If ABS is already on and the vehicle falls below this speed, ABS will apply the brakes again. Default 5, Recommended ~5 | ABSMinSpeedKph=5 |
ABSHoldPressureBeforeRelease | Bool | Whether the ABS should first hold the applied brake pressure to measure if the wheel slip will improve, if the slip does not improve it will release brake pressure. Default 0 (false), Recommended 0 (false) | ABSHoldPressureBeforeRelease=0 |
ABSBrakeMapRearMin | Float | ABS brake map for the rear axle, will use the setting of the normal onboard ABS. This is the minimum value. Default 0, recommended 'using the same as the front brake' | ABSBrakeMapRearMin=0 |
ABSBrakeMapRearStep | Float | ABS brake map for the rear axle, will use the setting of the normal onboard ABS. This is the step value. Default 0, recommended 'using the same as the front brake' | ABSBrakeMapRearStep=0.0909 |
BrakePressureSmoothing | Int | Controls the amount of brake smoothing, simulation of upbuilding brake pressure in the system (higher values are more instant build-up). Unit: 100% pressure / sec. default 10, recommended 20 | BrakePressureSmoothing=20 |
Dashboard Lights
We've also added the ability to have lights in the cockpit for when the wheels slip or lock. The ABS LEDs are named "ABSLEFT_LED" and "ABSRIGHT_LED", the TC LEDs are "TCLEFT_LED" and "TCRIGHT_LED". The LEDs are set up similar to the REV LEDs, with a maximum of 9 LEDs for each side. The last LED in the range (LED 9, but assigned index 8 because we count from 0) will only come on during ABS/locking or TC. You can change the names of these to match your specific car in the cockpitinfo file:
TCLEFT_LED=MYCAR_TCL
TCRIGHT_LED=MYCAR_TCR
ABSLEFT_LED=MYCAR_ABSL
ABSRIGHT_LED=MYCAR_ABSR
This is just an example, you can name it whatever you like.
The ABS trigger under two conditions; ABS is active and the LEDs flash, or one of the wheel has locked when just one LED will trigger. The TC LED simply lights up when TC activates. This can be seen flashing as well because the TC turns on and off by itself.Other than this the LEDs will partially come on when the cars experience slip.
Here's an example video. The pink lights show traction control, white, wheel lock.