Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import can
- while True:
- measurements = get_readings_from_canbus(can)
- time.sleep(0.1)
- import can
- bus = can.interface.Bus(channel='can0', bustype='socketcan_native')
- notifier = can.Notifier(bus, [can.Printer()])
- import can
- bus = can.interface.Bus(channel='can0', bustype='socketcan_native')
- notifier = bus.recv()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement