This commit is contained in:
rusefillc 2021-11-22 14:29:48 -05:00
parent 42da5746f4
commit a07e0a37b1
1 changed files with 5 additions and 0 deletions

View File

@ -822,6 +822,7 @@ everySecondTimer = Timer.new();
-- cranking!
packet542 = {0x20, 0xc2, 0x81, 0xd9, 0x00, 0x00, 0x00, 0x00}
packet543 = {0x13, 0x57, 0x13, 0x45, 0x00, 0xe8, 0x00, 0x00}
-- every 200ms
packet540 = {0x00, 0x00, 0x5a, 0x4c, 0xff, 0x00, 0x00, 0x00}
@ -832,9 +833,13 @@ packet546 = {0x35, 0x48, 0x44, 0x31, 0x46, 0x48}
packet547 = {0x50, 0x41, 0x31, 0x4b, 0x42, 0x36}
packet548 = {0x33, 0x34, 0x38, 0x32, 0x32, 0x00}
counter543 = 0;
function onTick()
txCan(1, 0x542, 1, packet542)
txCan(1, 0x543, 1, packet543)
if every200msTimer:getElapsedSeconds() > 1 then
every200msTimer:reset();
txCan(1, 0x540, 1, packet540)