getSimTime
Definition
-- @/=[C]:-1
function getSimTime(...)
Callers
@/lua/vehicle/extensions/tech/platooning.lua
simData = {
-- time = obj:getSimTime(),
closestVehicles1 = vClosest1,
@/lua/vehicle/extensions/tech/techCore.lua
local vehicleState = {
time = obj:getSimTime(),
pos = obj:getPosition(),
@/lua/vehicle/extensions/gameplayStatisticModules/watchBurnout.lua
if not prevTrigger then
startTime = obj:getSimTime()
end
if prevTrigger then
local burnOutTime = obj:getSimTime() - startTime
if burnOutTime > 0.1 then
@/lua/vehicle/controller/tech/powertrainSensor.lua
latestReading[device.name] = deviceData
latestReading['time'] = obj:getSimTime() -- Time-stamp the sample reading.
end
@/lua/vehicle/extensions/tech/mesh.lua
table.clear(latestReading)
latestReading.time = obj:getSimTime()
latestReading.nodes = nodes
@/lua/vehicle/controller/tech/GPS.lua
-- Gather the latest reading data.
latestReading = { time = obj:getSimTime(), x = pos.x, y = pos.y, lon = lon, lat = lat }
@/lua/vehicle/controller/tech/mesh.lua
-- Timestamp the latest reading data.
local latestReading = { time = obj:getSimTime(), nodes = nodes }
@/lua/vehicle/extensions/gameplayStatisticModules/watchAirtime.lua
if not prevTrigger then
startTime = obj:getSimTime()
end
if prevTrigger then
local airTime = obj:getSimTime() - startTime
if airTime > 0.1 then
@/lua/vehicle/extensions/tech/ACC.lua
simData = {
time = obj:getSimTime(),
currentSp = currentSpeed,
@/lua/vehicle/controller/tech/roadsSensor.lua
latestReading = {
time = obj:getSimTime(), -- Time-stamp the sample reading.
dist2CL = distToCenterline, -- Approx. minimum distance between vehicle front-axle-midpoint and road reference line (center line), in metres.
@/lua/vehicle/controller/tech/idealRADARSensor.lua
latestReading = {
time = obj:getSimTime(),
closestVehicles1 = vClosest1,
@/lua/vehicle/controller/tech/advancedIMU.lua
state.latestReading = {
time = obj:getSimTime(),
mass = interpMass,
@/lua/vehicle/mapmgr.lua
local function getObjects()
local simTime = obj:getSimTime()
if simTime ~= lastSimTime then