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?