Skip to content

Commit

Permalink
adding basic receiver for testing, will remove once testing is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioc76 committed Jan 16, 2025
1 parent b69058d commit bdf10c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autonav_ws/src/autonav_hardware/src/can_receiver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import can

dev_channel = input("enter canable channel:")

my_can_bus = can.ThreadSafeBus(
bustype="slcan", channel=dev_channel, bitrate=100000
)

with my_can_bus as bus:
for msg in bus:
print(msg.data)

0 comments on commit bdf10c6

Please sign in to comment.