updateBrakeABS
Definition
-- @/lua/vehicle/wheels.lua:542
local function updateBrakeABS(wd, brake, invAirspeed, airspeed, airspeedCutOff, dt)
if brake > 0 and wd.brakeTorque > 0 then
local brakeInputSplit = wd.brakeInputSplit
local nonABSBrakingTorque = wd.brakeTorque * (min(brake, brakeInputSplit) + max(brake - brakeInputSplit, 0) * wd.brakeSplitCoef)
local absCoef = updateABSCoef(wd, brake, invAirspeed, airspeed, airspeedCutOff, dt)
local desiredBrakingTorque = nonABSBrakingTorque * absCoef
return desiredBrakingTorque
else
return 0
end
end
Callers
@/lua/vehicle/controller/drivingDynamics/supervisors/components/brakeControl.lua
local function updateBrakeABS(wd, brake, invAirspeed, airspeed, airspeedCutOff, dt)
local absData = absWheelData[wd.name]