Skip to content

507 motor constants setter only called when full motor constants object is supplied instead of at attribute change#509

Open
tkevinbest wants to merge 2 commits into
neurobionics:mainfrom
tkevinbest:507-motor-constants-setter-only-called-when-full-motor-constants-object-is-supplied-instead-of-at-attribute-change
Open

507 motor constants setter only called when full motor constants object is supplied instead of at attribute change#509
tkevinbest wants to merge 2 commits into
neurobionics:mainfrom
tkevinbest:507-motor-constants-setter-only-called-when-full-motor-constants-object-is-supplied-instead-of-at-attribute-change

Conversation

@tkevinbest

Copy link
Copy Markdown
Member

Updated handling of motor constants to properly call a callback if any value is modified. Updated all instances and tests accordingly.

Fixes #507 .

Also minor renaming of motor constants class to make it clearer what is a class and what is an instance.

@sentry

sentry Bot commented Jan 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@senthurayyappan senthurayyappan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Overall, it looks like a non-breaking change, since all the changes are internal. Should we still test this PR on hardware before merging, just in case?

@VarunSatyadevShetty @ellliewilson Can I please get your help running this branch on your existing setup? Adding you both as reviewers to this PR!

@VarunSatyadevShetty

Copy link
Copy Markdown
Member

Sounds good! I am happy to take a look at this PR! Thank You @senthurayyappan @tkevinbest

@tkevinbest

Copy link
Copy Markdown
Member Author

@VarunSatyadevShetty I don't think this needs a full OSL hardware test. Could even just be on an actpack with a regular pi and make sure things work as expected? Or if someone has a test bench setup handy, we could validate it pretty easily if there are two different torque constants.

In my opinion, since it passes the unit tests I think we can just merge it.

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.

Motor constants setter only called when full motor constants object is supplied instead of at attribute change

3 participants