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

Can example patch #679

Merged
merged 2 commits into from
Mar 23, 2022
Merged

Can example patch #679

merged 2 commits into from
Mar 23, 2022

Conversation

thatcomputerguy0101
Copy link
Contributor

The documentation, CAN doc file, and firmware all indicate that the current state is only one byte of the heartbeat message. The can_example.py file used to read four bytes as the state on line 21, but only one byte on line 49. This PR adjusts line 21 so that it only uses one byte, making the example work. Otherwise, it incorrectly reads the flags that occupy the next three bytes as part of the state, which can cause the idle state to never be recognized.

Wetmelon and others added 2 commits March 10, 2022 20:12
The documentation, CAN doc file, and firmware all indicate that the current state is only one byte of the heartbeat message. This file used to read four bytes as the state on line 21, but only one byte on line 49. This PR adjusts line 21 so that it only uses one byte, making this example work. Otherwise, it incorrectly reads the flags that occupy the next three bytes as part of the state, which can cause the idle state to never be recognized.
@CLAassistant
Copy link

CLAassistant commented Mar 22, 2022

CLA assistant check
All committers have signed the CLA.

@Wetmelon Wetmelon self-requested a review March 23, 2022 03:28
@samuelsadok samuelsadok merged commit 22be53c into odriverobotics:devel Mar 23, 2022
@thatcomputerguy0101 thatcomputerguy0101 deleted the can_example_patch branch March 23, 2022 12:42
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.

4 participants