Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(motor-control): improve stop request handling #818

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

ryanthecoder
Copy link
Contributor

So when a stop request is broadcast it was previously sending out 2-3 responses per motor axis. 1 from the move group controller, 1 from the motor controller and 1 from the motor interrupt handler if the motor has been previously enabled (which is always true except right after a firmware update or power cycle.)

This PR removes the response from the move group controller, since this message always responded with a message index 0 which is unhelpful and will reduce the number of messages by 1/3 and prevents many of the "Error 1008 CAN_BUS_ERROR: error frame encountered" instances

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Oh that's so much better

@ryanthecoder ryanthecoder merged commit a3cd34c into main Dec 13, 2024
30 of 31 checks passed
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