getGroundSpeed
Definition
-- @/=[C]:-1
function getGroundSpeed(...)
Callers
@/lua/vehicle/extensions/test/ffbCalibration.lua
local function onPhysicsStep(dtSim)
airspeed = obj:getGroundSpeed()
if M.mode == "steerPeak" then
@/lua/vehicle/controller/dummy.lua
if streams.willSend("engineInfo") then
M.engineInfo[11] = obj:getGroundSpeed()
end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veGeneralData.lua
data.airflowSpeed = obj:getAirflowSpeed()
data.groundSpeed = obj:getGroundSpeed()
data.envTemperature = obj:getEnvTemperature()
@/lua/vehicle/extensions/gameplayStatisticModules/watchBurnout.lua
local prevTrigger = curTrigger
velocity = obj:getGroundSpeed() * 1.5
curTrigger = false
@/lua/vehicle/sounds.lua
-- wheels
local groundSpeed = obj:getGroundSpeed()
@/lua/vehicle/controller/vehicleController/vehicleController.lua
M.engineInfo[10] = controlLogicModule.gearboxTorque or 0
M.engineInfo[11] = obj:getGroundSpeed() -- airspeed
M.engineInfo[12] = electrics.values.fuelVolume * (electrics.values.ignitionLevel > 0 and 1 or 0)
@/lua/vehicle/controller/tech/vehicleSystemsCoupling.lua
messageToSimulink[17] = vel.z -- Velocity Z, ms^-1.
messageToSimulink[18] = obj:getGroundSpeed() -- Velocity, ms^-1.
messageToSimulink[19] = sensors.ffiSensors.sensorX -- Acceleration X, ms^-2.
@/lua/vehicle/extensions/gameplayStatisticModules/watchAirtime.lua
local prevTrigger = curTrigger
local curTrigger = obj:getGroundSpeed() > 6
@/lua/vehicle/electrics.lua
vals.airspeed = obj:getGroundSpeed()
vals.airflowspeed = obj:getAirflowSpeed()
@/lua/vehicle/wheels.lua
-- virtualSpeed = { title = "Virtual Speed", color = getContrastColorStringRGB(7), unit = "km/h", value = virtualAirspeed * 3.6},
-- realSpeed = { title = "Real Speed", color = getContrastColorStringRGB(1), unit = "km/h", value = obj:getGroundSpeed() * 3.6},
-- wheelSpeed = { title = "Wheel Speed", color = getContrastColorStringRGB(8), unit = "km/h", value = wheelspeed * 3.6},
@/lua/vehicle/controller/tech/cosimulationCoupling.lua
kOut[15] = obj:getYawAngularVelocity() -- Yaw rate, rad/s.
kOut[16], kOut[17] = obj:getGroundSpeed(), obj:getAltitude() -- Ground speed, m/s. Altitude, meters.
local fwd = obj:getDirectionVector()