We are currently having problems with our SDS Mrk4i Swerve Modules. As of right now when we drive around, the drive motors seem to be normal. However, we are unable to turn since the wheels are “fighting each other.” The wheels seem to be turning the correct way but the wheels are spinning in opposite directions when we are trying to turn (e.g. trying to turn the robot to the right). This seems to be a software issue but we are unable to figure out why this is happening.
Could you please elaborate? If it is the CANcoder IDs, those are correct. Otherwise I’m not really sure what you mean. This is my first time coding mk4i, so do you mean the swerve module driving encoder position?
It looks like you are using wpilib swerve kinematics so you can just flip some signs at the definition of DriveKinematics. Also make sure that CCW+ CW- on the gyro.