democat3457 / swerve-lib

Fork of SDS swerve code that provides bug fixes and maintenance.
21 stars 16 forks source link

Off axis rotation while moving #10

Open ZacharyH728 opened 1 year ago

ZacharyH728 commented 1 year ago

The robot translates and rotates perfectly fine independently, however not when you try both at the same time, i.e. moving while rotating the robot. When you try both at the same time the robot rotates not from the centre, essentially making donuts

markzakharyan commented 1 year ago

@ZacharyH728 make sure your kinematics are correct. if you're using the example project they have, make sure the length and width of the robot in Constants.java are correct.