mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-15 17:38:37 +08:00
19 lines
343 B
Python
19 lines
343 B
Python
# requires pyusb
|
|
# pip install --pre pyusb
|
|
|
|
|
|
# Exceptions
|
|
class ODriveError(Exception):
|
|
pass
|
|
|
|
class ODriveNotConnectedError(ODriveError):
|
|
pass
|
|
|
|
USB_DEV_ODRIVE_3_1 = (0x1209, 0x0D31)
|
|
USB_DEV_ODRIVE_3_3 = (0x1209, 0x0D33)
|
|
# all devices
|
|
USB_VID_PID_PAIRS = [USB_DEV_ODRIVE_3_1, USB_DEV_ODRIVE_3_3]
|
|
|
|
def noprint(x):
|
|
pass
|