CTRE Swerve API Encoder Offset Not Working

We are using the new CTRE Swerve API, and we configured each module like this:

private static final SwerveModuleConstants FrontLeft = ConstantCreator.createModuleConstants(
                FRONT_LEFT_STEER_MOTOR_ID,
                FRONT_LEFT_DRIVE_MOTOR_ID,
                FRONT_LEFT_ENCODER_ID,
                FRONT_LEFT_ENCODER_OFFSET,
                frontLeftXPos.magnitude(),
                frontLeftYPos.magnitude(),
                INVERT_LEFT_SIDE);

However, the ENCODER_OFFSET is not working. Four modules still have a small difference in the angle, and the ShuffleBoard also shows that the angle is not at zero when startup. How can we correctly zero the CANCoder?

bump

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.