This document gives a breakdown of our 2022 swerve code. It goes in depth into swerve concepts/math as well as explaining code snippets.

<aside> 💡 Having an understanding of vectors and basic trig will be necessary to understanding this page.

</aside>

Swerve Fundamentals

Code

SwerveModule

Drivetrain