Repository navigation
Add START_ELEVATION to move to a start height after calibration - #28
Conversation
The motor starts in whatever control mode was last saved to its flash (MIT from the factory) and ignores position/velocity commands in any other mode, so the lifter never moved, never finished calibration and never sent elevation_observation. Set POS_VEL before enabling, on every start, without saving it. Add START_ELEVATION (--start-elevation): a height in mm to move to after calibration and hold until the first lifter command, like the arms' start pose. It defaults to off, which holds where calibration ends. Drop the move toward the top after calibration, which the next tick overrode and whose target lacked the calibration offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set the motor's mode on start and optionally move to a start elevation
|
Thanks for the PR! Moving to a start height after calibration makes sense, and dropping the old move toward Two things I'd like to sort out before merging:
|
init_arm_motors already sends the set-control-mode command (openarm-can 1.4.0 here), and the lifter calibrates without the second one, so remove it. The tick that ended calibration sent no command, so the motor kept pushing into the bottom; if that torque read as a jam on the next tick, it replaced the start target with the current position and the lifter stayed at the bottom. Send the start move on that tick instead. Checked on the Cell: calibrates and holds at 0 mm with the launcher, and rises to 50 mm with LIFTER_START_ELEVATION=50. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the mode resend and start moving when calibration ends
|
makes sense.
|
|
Merged! |
Add START_ELEVATION (--start-elevation): a height in mm to move to after calibration and hold until the first lifter command, like the arms' start pose. It defaults to off, which holds where calibration ends. Drop the move toward the top after calibration, which the next tick overrode and whose target lacked the calibration offset.