Calibrates servo range of motion by having the user manually move the arm through its full range while tracking min/max positions for all joints.
Usage
mix bb_so101.calibrate PORT [OPTIONS]Arguments
PORT- Serial port (e.g., /dev/ttyUSB0 or /dev/ttyACM0)
Options
--baud-rate,-b- Baud rate (default: 1000000)--dry-run,-n- Show what would be done without writing offsets
Process
- Disables torque on ALL servos so you can move the arm freely
- Move every joint through its FULL range of motion
- The display shows live min/max tracking for each joint
- Press Enter when done
- Calculates mechanical center for each joint
- Sets position_offset so center corresponds to 0 radians
Example
mix bb_so101.calibrate /dev/ttyUSB0
mix bb_so101.calibrate /dev/ttyUSB0 --dry-run