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 C++ Interface #34

Open
ryan-barry-99 opened this issue Jan 29, 2024 · 1 comment
Open

CAN C++ Interface #34

ryan-barry-99 opened this issue Jan 29, 2024 · 1 comment
Assignees

Comments

@ryan-barry-99
Copy link
Contributor

Set up FlexCAN interface to be supported by all Teensy boards

@ryan-barry-99
Copy link
Contributor Author

ryan-barry-99 commented Feb 12, 2024

I added the general structure for CAN Message IDs and configured the object dictionary to use them.

Right now the only IDs are for the target and current velocity of the rover's wheels, with the idea being that we can have all 6 velocities in a single 8 byte array and use the unsigned char bits of each byte to scale the velocities between a min and max range, utilizing the first bit for forward and reverse (1111 1111 for max reverse vel, 0111 1111 for max forward vel, x000 0000 for neutral)

We need to decide exactly what messages need to be sent and received for each board/thread and then decide on the data structure for that message. Additionally, the priority of the messages is important (albeit less so because of the high baud rate of the CAN bus) as lower ID messages are prioritized

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

No branches or pull requests

2 participants