Skip to content

Retry POS_VEL register writes - #12

Open
YT-wk wants to merge 1 commit into
Seeed-Projects:mainfrom
YT-wk:codex/pos-vel-register-retries
Open

Retry POS_VEL register writes#12
YT-wk wants to merge 1 commit into
Seeed-Projects:mainfrom
YT-wk:codex/pos-vel-register-retries

Conversation

@YT-wk

@YT-wk YT-wk commented Jun 7, 2026

Copy link
Copy Markdown

Summary

Retry POS_VEL PI register writes so transient dm-serial write timeouts do not leave joints partially configured during startup.

  • Add a small helper for retrying write_register_f32 calls.
  • Use the helper for velocity and position PI register writes before ensure_mode(Mode.POS_VEL).
  • Preserve existing behavior by returning False from mode_pos_vel when retries still fail.

Validation

  • Observed transient write_register_f32 failed: dm-serial write failed: Operation timed out during VMware Ubuntu 22.04 startup.
  • Verified the same USB2CAN bridge can discover motors 0x01 through 0x07 with motorbridge-cli scan.
  • Verified startup succeeds with retry handling in the ROS2 bringup flow.
  • Ran python -m py_compile reBotArm_control_py/actuator/arm.py.

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.

2 participants