feathersdk.robot.actuators.robstride.admin Module

class feathersdk.robot.actuators.robstride.admin.RobstrideAdminControl(motor)

Bases: object

Used to perform administrative tasks on a Robstride motor. EG: setting motor’s ID, flashing firmware, etc.

Parameters:

motor (RobstrideMotor)

set_id(new_id)

Set a new ID on the motor. Make sure it doesn’t clash with any other motor’s ID! This motor will no longer work after setting and you’ll have to rebuild the motor object.

Parameters:

new_id (int)

Return type:

None

flash_firmware(firmware_path, force_flash=False, progressbar=False)

Flash firmware from a .bin file to the motor.

Parameters:
  • firmware_path (str) – The path to the firmware file to flash.

  • force_flash (bool) – If True, flash the firmware even if the motor’s current firmware version matches the new firmware version.

  • progressbar (bool) – If True, show a progress bar for the flash operation. Requires tqdm library to be installed.

Returns:

True if the firmware was flashed successfully, False if the firmware was already at the correct version and thus flashing was skipped.

Return type:

bool