Skip to content

STAR X-arm: defaults on the feature, not the configuration - #1462

Draft
BioCam wants to merge 2 commits into
PyLabRobot:mainfrom
BioCam:star-x-arm-defaults-on-feature
Draft

BioCam wants to merge 2 commits into
PyLabRobot:mainfrom
BioCam:star-x-arm-defaults-on-feature

Conversation

@BioCam

@BioCam BioCam commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

XArmConfiguration holds acceleration_level_default and current_limit_default, while XArm.move_to_x_position and move_x_relative hard-code acceleration_level=3, current_limit=7 and never read them. A configuration is facts about the device; a default is what the driver chooses to send, and P18 puts it on the feature - as Head96 and CoreGrippers already do.

  • XArm.default_acceleration_level = 3 and XArm.default_current_limit = 7; initialize, move_to_x_position and move_x_relative take None and fall back to them
  • acceleration_level_default and current_limit_default leave XArmConfiguration, with_device_facts_of and the five recordings
  • no wire change: still X0XIlw7, X0XPla…lr3lw7
  • design.md: P3 no longer counts the firmware's own defaults as configuration, P18 says never on the configuration, and item 8 moves XArm to the features that follow it
star.x_arm.default_current_limit = 5        # this arm
XArm.default_acceleration_level = 2         # every arm

Tests: x_arm_tests - both defaults set on the arm reach the wire (X0XIlw5, X0XPla05000lr2lw5); the configuration tests that used current_limit_default as a device fact a caller sets use acceleration_level_range.

🤖 Generated with Claude Code

XArmConfiguration no longer holds acceleration_level_default and
current_limit_default; XArm.default_acceleration_level and
default_current_limit are what initialize, move_to_x_position and
move_x_relative fall back to. design.md says a default never lives on a
configuration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BioCam
BioCam force-pushed the star-x-arm-defaults-on-feature branch from 6433de6 to d656926 Compare October 2, 2026 10:02
@BioCam
BioCam changed the base branch from star-saved-firmware-variable to main October 2, 2026 10:02
Pipettes.move_to_x_position, Head.move_to_x_position and
iSWAP.elbow_move_to_x_position no longer carry their own
acceleration_level=3 and current_limit=7; they pass None through and
the X-arm that holds them applies its defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant