Update B6-temp.md
This commit is contained in:
parent
6c26861de4
commit
c30d6fc62e
|
@ -127,6 +127,7 @@ canRxAddMask(ECU_BUS, 0, 0, onAnythingFromECU)
|
||||||
canRxAddMask(TCU_BUS, 0, 0, onAnythingFromTCU)
|
canRxAddMask(TCU_BUS, 0, 0, onAnythingFromTCU)
|
||||||
|
|
||||||
everySecondTimer = Timer.new()
|
everySecondTimer = Timer.new()
|
||||||
|
canMotorInfoCounter = 0
|
||||||
|
|
||||||
function onTick()
|
function onTick()
|
||||||
if everySecondTimer:getElapsedSeconds() > 1 then
|
if everySecondTimer:getElapsedSeconds() > 1 then
|
||||||
|
@ -134,9 +135,9 @@ function onTick()
|
||||||
print("Total from ECU " .. totalEcuMessages .. " from TCU " .. totalTcuMessages)
|
print("Total from ECU " .. totalEcuMessages .. " from TCU " .. totalTcuMessages)
|
||||||
|
|
||||||
|
|
||||||
canMotorInfo = (canMotorInfo + 1) % 8
|
canMotorInfoCounter = (canMotorInfoCounter + 1) % 8
|
||||||
canMotorInfo[1] = 0x90 + (canMotorInfo * 2)
|
canMotorInfo[1] = 0x90 + (canMotorInfoCounter * 2)
|
||||||
-- txCan(1, MOTOR_INFO, 0, canMotorInfo)
|
-- txCan(1, MOTOR_INFO, 0, canMotorInfo)
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue