ECU to Mainline DynoLog Data Protocol #4319
This commit is contained in:
parent
58de39aec9
commit
5365ae5c2d
|
@ -18,6 +18,11 @@ function onTick()
|
|||
local TPS = getSensor("TPS1")
|
||||
local IAT = getSensor("IAT")
|
||||
|
||||
setTwoBytesMsb(protocolBase1, 0, RPM)
|
||||
setTwoBytesMsb(protocolBase1, 2, MAP * 10)
|
||||
setTwoBytesMsb(protocolBase1, 4, TPS * 10)
|
||||
setTwoBytesMsb(protocolBase1, 6, IAT * 100)
|
||||
|
||||
txCan(1, DYNOLOG_BASE + 0, 0, protocolPacket)
|
||||
txCan(1, DYNOLOG_BASE + 1, 0, protocolBase1)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue