mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-22 16:20:30 +08:00
24 lines
394 B
Python
24 lines
394 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_2 = (0x1209, 0x0D32)
|
|
USB_DEV_ODRIVE_3_3 = (0x1209, 0x0D33)
|
|
# all devices
|
|
USB_VID_PID_PAIRS = [
|
|
USB_DEV_ODRIVE_3_1,
|
|
USB_DEV_ODRIVE_3_2,
|
|
USB_DEV_ODRIVE_3_3,
|
|
]
|
|
|
|
def noprint(x):
|
|
pass
|