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

Update WPILib, Fix drive train math (hopefully), and Code cleanup #1

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

Eoghanmc22
Copy link
Collaborator

This ended up being a bigger pr than I thought it would be.

Main changes

  • Update to latest WPILib
  • Account for the swerves having different gear ratios
  • Correct max speed calculation
  • Don't (re)multiply speed by max speed before sending speed to motors
  • Delete some seemingly obsolete classes and code
  • Rewrite limelight/pose tracking code based on the new example
  • Fix how the slew rate filter was being applied

Changed a lot of the drive train code, so we need to validate it is correct with the robot on blocks before we begin driving. Hopefully these changes make the robot a lot easier to drive.

Possible remaining issues:
navx was mounted inverted last season and the gyro is still inverted in the code. this will cause the field oriented control to be applied backward and also likely odometry problems as well.

@Eoghanmc22 Eoghanmc22 requested a review from kglasnapp August 31, 2024 03:58
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

Successfully merging this pull request may close these issues.

3 participants