2019-09-24 18:50:53 -06:00
|
|
|
#!/usr/bin/env python3
|
2018-06-15 17:56:11 -06:00
|
|
|
from panda import Panda
|
|
|
|
|
|
|
|
p = Panda()
|
|
|
|
p.set_safety_mode(Panda.SAFETY_ALLOUTPUT)
|
|
|
|
p.set_gmlan(bus=2)
|
2019-10-15 15:03:31 -06:00
|
|
|
#p.can_send(0xaaa, b"\x00\x00", bus=3)
|
2018-06-15 17:56:11 -06:00
|
|
|
last_add = None
|
|
|
|
while 1:
|
|
|
|
ret = p.can_recv()
|
|
|
|
if len(ret) > 0:
|
|
|
|
add = ret[0][0]
|
2019-10-15 15:03:31 -06:00
|
|
|
if last_add is not None and add != last_add + 1:
|
|
|
|
print("MISS: ", last_add, add)
|
2018-06-15 17:56:11 -06:00
|
|
|
last_add = add
|
2019-09-24 19:02:15 -06:00
|
|
|
print(ret)
|