getLastMailbox
Definition
-- @/=[C]:-1
function getLastMailbox(...)
Callers
@/lua/vehicle/extensions/tech/platooning.lua
currentMailboxVersionLeaderID = lastMailboxVersionLeaderID
platoonLeaderID = lpack.decode(obj:getLastMailbox(mailboxNameLeader))
local mailBoxNameVehicleInfront = "vehicleInfront"..vehicleId
local vehicleInfront = lpack.decode(obj:getLastMailbox(mailBoxNameVehicleInfront))
currentMailboxVersionVehicleIndex = lastMailboxVersionVehicleIndex
vehicleIndexInPlatoon = (lpack.decode(obj:getLastMailbox(tostring(vehicleId))))-1
currentMailboxVersionLeaderID = lastMailboxVersionLeaderID
platoonLeaderID = lpack.decode(obj:getLastMailbox(mailboxNameLeader))
currentMailboxVersionUltrasonic = lastMailboxVersionUltrasonic
distance = (lpack.decode(obj:getLastMailbox(mailboxSensorName)))
currentMailboxVersionVehicleIndex = obj:getLastMailboxVersion(tostring(vehicleId))
vehicleIndexInPlatoon = (lpack.decode(obj:getLastMailbox(tostring(vehicleId))))-1 --NFSA
mailboxSensorName = vehicleId.."UltrasonicReading"
currentMailboxVersionVehicleIndex = obj:getLastMailboxVersion(tostring(vehicleId))
vehicleIndexInPlatoon = (lpack.decode(obj:getLastMailbox(tostring(vehicleId))))-1 --NFSA
mailboxSensorName = vehicleId.."UltrasonicReading"
currentMailboxVersionVehicleIndex = obj:getLastMailboxVersion(tostring(vehicleId))
vehicleIndexInPlatoon = (lpack.decode(obj:getLastMailbox(tostring(vehicleId))))-1 --NFSA
@/lua/vehicle/mapmgr.lua
local changeSet = obj:getLastMailbox('updateDrivabilities')
if changeSet == "" then return end -- mailbox is empty
local _map = lpack.decode(obj:getLastMailbox('mapData'))
if not (_map and _map.graphData and _map.edgeKdTree and _map.maxRadius and _map.nodeAliases) then return end
currentMailboxVersion = lastMailboxVersion
updateSignals(lpack.decode(obj:getLastMailbox("trafficSignalUpdates")))
end
if simTime ~= lastSimTime then
local objData = obj:getLastMailbox("objUpdate")
M.objects = #objData == 0 and {} or lpack.decode(objData)