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

Snap to nearest Hub button #154

Open
cpostbitbuckets opened this issue Mar 17, 2022 · 0 comments
Open

Snap to nearest Hub button #154

cpostbitbuckets opened this issue Mar 17, 2022 · 0 comments

Comments

@cpostbitbuckets
Copy link
Member

cpostbitbuckets commented Mar 17, 2022

The drivetrain should support snapping it's rotation to the nearest hub angle to allow for easier alignment while shooting.

See here for ideas on auto rotating with a ProfiledPIDController: https://github.com/FRC-Sonic-Squirrels/swerve-template/blob/b537a34e31bd3962d4f60ee14d20dc8a343ef4e7/src/main/java/frc/robot/commands/DriveWithSetRotationCommand.java#L36-L41

Each hub is 150 degrees/-150 degrees

2022-field

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

1 participant