frc78 / FRC78_2024

Software repository for FRC Team 78's robot code for the 2024 FRC game Crescendo
Other
5 stars 1 forks source link

Use custom center of rotation for orbiting #199

Open ArchdukeTim opened 4 months ago

ArchdukeTim commented 4 months ago

https://docs.wpilib.org/en/stable/docs/software/kinematics-and-odometry/swerve-drive-kinematics.html#using-custom-centers-of-rotation

SwerveDriveKinematics supports choosing a center of rotation when calculating wheel speeds. We should be able to set the subwoofer as the center of rotation, and the robot will simply rotate around that point instead of how the orbital command works now