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

Add Swerve Drive Support #11

Open
danielbrownmsm opened this issue Dec 18, 2022 · 6 comments
Open

Add Swerve Drive Support #11

danielbrownmsm opened this issue Dec 18, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@danielbrownmsm
Copy link
Collaborator

Add Swerve Drive Support

Summary
We have a swerve drive. It needs to be coded.

Work Required

  • code the swerve drive
  • test the swerve drive

Verification

  • CI passes
@danielbrownmsm danielbrownmsm self-assigned this Dec 18, 2022
@jkleiber
Copy link
Contributor

We should make the swerve drive into its own subsystem rather than mixing it with the Drivetrain/DrivetrainIO system. Something like SwerveDrive and SwerveDriveIO seem like names we could use

@danielbrownmsm
Copy link
Collaborator Author

why?

@jkleiber
Copy link
Contributor

It makes more sense to start with a clean slate since the swerve drive will use different amounts of motors and different driving/odometry logic. It's almost totally different so we should make it a separate subsystem, saving the current drivetrain code as legacy code in case we make a west coast drive again

@danielbrownmsm danielbrownmsm added the enhancement New feature or request label Dec 24, 2022
@danielbrownmsm
Copy link
Collaborator Author

Working under the assumption that we are plugging the absolute encoders into the roboRIO. If we're plugging them directly into the sparkMAXes instead, we'll need to change some code

danielbrownmsm added a commit that referenced this issue Dec 24, 2022
still has a lot of functionality to be written and planned, but the basic skeleton is there
danielbrownmsm added a commit that referenced this issue Dec 24, 2022
@danielbrownmsm danielbrownmsm linked a pull request Dec 27, 2022 that will close this issue
danielbrownmsm added a commit that referenced this issue Dec 31, 2022
of course, it doesn't do much right now, but the framework is there for writing all the set_output etc.
adds SwerveModulePosition, SwerveModuleState, SwerveKinematics, and SwerveOdometry
also removes all the drivetrian shuffleboard code (because this file was copied from the Drivetrain subsystem)
ticket: #11
@danielbrownmsm danielbrownmsm added this to the Enhanced Functionality milestone Dec 31, 2022
danielbrownmsm added a commit that referenced this issue Dec 31, 2022
danielbrownmsm added a commit that referenced this issue Jan 4, 2023
added actually getting encoder readings
TODO: add absolute encoder support, everything right now is all the internal NEO encoders
ticket: #11
danielbrownmsm added a commit that referenced this issue Jan 4, 2023
they do not currently work. ticket: #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants