mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 00:02:08 +08:00
Use normal can sock
old-commit-hash: 07e2d34ebb40b6bd3e2e35e823da3fa61ebe96f0
This commit is contained in:
@@ -16,8 +16,8 @@ for i in range(2):
|
||||
|
||||
|
||||
# Replay
|
||||
sendcan = messaging.pub_sock('sendcan')
|
||||
can = messaging.pub_sock('can')
|
||||
while True:
|
||||
for m in can_msgs:
|
||||
sendcan.send(m.as_builder().to_bytes())
|
||||
can.send(m.as_builder().to_bytes())
|
||||
time.sleep(0.01) # 100 Hz
|
||||
|
||||
Reference in New Issue
Block a user