Skip to content

Swerve odometry core logic #13

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Swerve odometry core logic #13

wants to merge 1 commit into from

Conversation

ThomasP850
Copy link

@ThomasP850 ThomasP850 commented May 3, 2025

Resolves #12

Most of the logic is pretty straightforward. Let me know if anything looks weird.
Key changes

  • Pulled @QuackingBob's matrix utils from the robot arm repo
  • Updated a lot of the swerve logic to use explicit matrices.
  • Created functional swerve odometry

What's left for swerve odometry:

  • Test our method of getting chassis angle using the gimbal IMU (Ideally, we should add an IMU to the chassis at some point).
  • Publish odometry data wherever algorithms wants it.
  • Measure accuracy over set distances, get a general idea of standard deviation with respect to time/distance driven.

@ThomasP850 ThomasP850 requested a review from irvingywang May 3, 2025 22:39
Copy link
Collaborator

@irvingywang irvingywang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks pretty good! Could you refactor so that swerve odometry code is contained inside swerve_locomotion.h/c? Otherwise LGTM

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swerve Localization
2 participants