Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import can
  2.  
  3. while True:
  4. measurements = get_readings_from_canbus(can)
  5. time.sleep(0.1)
  6.  
  7. import can
  8. bus = can.interface.Bus(channel='can0', bustype='socketcan_native')
  9. notifier = can.Notifier(bus, [can.Printer()])
  10.  
  11. import can
  12. bus = can.interface.Bus(channel='can0', bustype='socketcan_native')
  13. notifier = bus.recv()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement