Update B6-temp.md

This commit is contained in:
rusefillc 2022-08-28 13:40:57 -04:00 committed by GitHub
parent 6c26861de4
commit c30d6fc62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -127,6 +127,7 @@ canRxAddMask(ECU_BUS, 0, 0, onAnythingFromECU)
canRxAddMask(TCU_BUS, 0, 0, onAnythingFromTCU)
everySecondTimer = Timer.new()
canMotorInfoCounter = 0
function onTick()
if everySecondTimer:getElapsedSeconds() > 1 then
@ -134,9 +135,9 @@ function onTick()
print("Total from ECU " .. totalEcuMessages .. " from TCU " .. totalTcuMessages)
canMotorInfo = (canMotorInfo + 1) % 8
canMotorInfo[1] = 0x90 + (canMotorInfo * 2)
-- txCan(1, MOTOR_INFO, 0, canMotorInfo)
canMotorInfoCounter = (canMotorInfoCounter + 1) % 8
canMotorInfo[1] = 0x90 + (canMotorInfoCounter * 2)
-- txCan(1, MOTOR_INFO, 0, canMotorInfo)
end
end