wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.04k stars 606 forks source link

[wpimath] Remove swerve wrappers for odometry and pose estimation, move wheel positions operations to kinematics #6673

Closed KangarooKoala closed 1 month ago

KangarooKoala commented 1 month ago

By moving the wheel positions operations to kinematics, we can remove the need to declare methods on the type parameters, which allows us to use arrays as the type parameters.

I'm open to splitting this into multiple PRs or deprecating SwerveDriveWheelPositions and SwerveDriveWheelStates/SwerveDriveWheelSpeeds until after the next season, but I'm starting with a large PR first to show the overall plan.

Notes:

KangarooKoala commented 1 month ago

The CI failure seems to be from an unrelated test?