ECU to Mainline DynoLog Data Protocol #4319

This commit is contained in:
rusefillc 2022-08-14 11:28:03 -04:00
parent 58de39aec9
commit 5365ae5c2d
1 changed files with 5 additions and 0 deletions

View File

@ -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