VE Lua Documentation

Press F to search!

decodeDoubleArray

Definition


-- @/lua/common/lpack.lua:76

local function decodeDoubleArray(sda, tbl)
  local tbl, i1 = tbl or {}, 1
  for i = 1, #sda - 7, 8 do
    tbl[i1] = unpackDouble(sda, i)
    i1 = i1 + 1
  end
  return tbl
end

Callers

@/lua/vehicle/controller/tech/vehicleSystemsCoupling.lua
        table.clear(decodedMessageFromSimulink)
        lpack.decodeDoubleArray(rawMsgFromSimulink, decodedMessageFromSimulink)
        handleMessageReceive()
        table.clear(decodedMessageFromSimulink)
        lpack.decodeDoubleArray(rawMsgFromSimulink, decodedMessageFromSimulink)
        if handleMessageReceive() or maxRecvId == 0 then
      table.clear(decodedMessageFromSimulink)
      lpack.decodeDoubleArray(rawMsgFromSimulink, decodedMessageFromSimulink)
      handleMessageReceive()
@/lua/vehicle/controller/tech/cosimulationCoupling.lua
        table.clear(msgIn)
        lpack.decodeDoubleArray(rawMsgFrom3rdParty, msgIn)
        handleMessageReceive()
        table.clear(msgIn)
        lpack.decodeDoubleArray(rawMsgFrom3rdParty, msgIn)
        if handleMessageReceive() or maxRecvId == 0 then
        table.clear(msgIn)
        lpack.decodeDoubleArray(rawMsgFrom3rdParty, msgIn)
        handleMessageReceive()