You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logic to control the stepper drivers can be taken almost directly from Rover_Embedded. See @ethanholter when starting this because there is some unintuitive logic happening which will need to be walked through
The general logic for receiving CAN bus commands should (hopefully) be mostly the same as the Rover_Embedded serial logic. We have never used CAN bus before so some research will be needed
We want to be mindful of the future as we implement this code. One thing that will become more of a problem later is bandwith along the CAN bus. We want to keep communication as fast as we possibly can because this will result in a more precise and efficient control loop (see me for a more thorough explanation). Instead of receiving commands that look like this: o 1 255\r which is 8 bytes, we instead want to receive a binary message looking like this 10110001 10011010. This is only 2 bytes. again, see me for a more thorough walk through of what this means and why it is important.
High level goals for the code:
Step by step:
o 1 255\rwhich is 8 bytes, we instead want to receive a binary message looking like this10110001 10011010. This is only 2 bytes. again, see me for a more thorough walk through of what this means and why it is important.