This commit is contained in:
rusefillc 2023-03-05 17:59:41 -05:00
parent c88a54eeaf
commit 3b0fea3459
1 changed files with 7 additions and 2 deletions

View File

@ -94,6 +94,11 @@ function relayFromECU(bus, id, dlc, data)
txCan(TCU_BUS, id, 0, data) -- relay non-TCU message to TCU
end
function setTwoBytes(data, offset, value)
data[offset + 1] = value % 255
data[offset + 2] = (value >> 8) % 255
end
function sendMotor1()
engineTorque = fakeTorque * 0.9
innerTorqWithoutExt = fakeTorque
@ -169,8 +174,8 @@ function onMotor1(bus, id, dlc, data)
fakeTorque = interpolate(0, 6, 100, 60, tps)
-- sendMotor1()
relayFromECU(bus, id, dlc, data)
sendMotor1()
-- relayFromECU(bus, id, dlc, data)
end
function relayFromECUAndEcho(bus, id, dlc, data)