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

[Systems] Arduino Motor Driver Initialization and Configuration Files(v0.0.1) #27

Open
ttchalakov opened this issue Oct 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request motor driver arduino arduino code for motor driver

Comments

@ttchalakov
Copy link
Contributor

The Arduino Motor Driver's public interface (for version 0.0.1) has an initialization procedure and then a repeated update function. In this post we will discuss the initialization procedure for version 0.0.1 of the arduino motor driver.

The MotorDriver class has constructors that should initialize its state, however an initialization function is necessary so that an error code can be returned if the initialization doesn't work, for instance, a serial connection was not able to be made or some other error occurs. Apart from errors, at initialization all sabertooths should have their serial communications established.

Another useful feature for the initialization procedure is to make structs or objects that store configurations for the motor driver. This is important to have because the way that the motor driver is configured for teleop mode is different then for autonomous mode. Therefore a configuration should store for each motor their ID, their baud rate, serial address, the arduino serial pins they are connected to, their directionality, and anything else you think is relevant.

@ttchalakov ttchalakov added enhancement New feature or request motor driver arduino arduino code for motor driver labels Oct 22, 2023
@gxywang gxywang changed the title Arduino Motor Driver Initialization and Configuration Files(v0.0.1) [Systems] Arduino Motor Driver Initialization and Configuration Files(v0.0.1) Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request motor driver arduino arduino code for motor driver
Projects
None yet
Development

No branches or pull requests

4 participants