Added find_motor_bus_ports.py

This commit is contained in:
jess-moss
2024-09-17 16:19:26 -05:00
parent 89da9f73b5
commit 1c1882e5eb
3 changed files with 44 additions and 4 deletions

View File

@@ -350,8 +350,10 @@ class FeetechMotorsBus:
self.port_handler.setPacketTimeoutMillis(TIMEOUT_MS)
# Set expected baudrate for the bus
self.set_bus_baudrate(BAUDRATE)
if not self.are_motors_configured():
raise OSError(
"Motors are not configured. Please use configure_motors.py to configure motors before continuing."
)
def reconnect(self):
self.port_handler = PortHandler(self.port)