Setting Swerve Offset

We are currently trying set our Cancoder offset. Altough we do it time after time it always changes randomly. What might be causing this issue? How can we fix it?

Your magnets are probably loose.

What could be the reason for that?

Bad glue job or no glue at all

Most (if not all) swerve modules should include instructions for securing the magnets inside the steer shaft. mk4i modules recommend loctite 609, which is not a thread locker, but a retaining compound meant for bonding cylindrical parts.

Our team had a similar issue and updating the CANCoder firmware to the latest version fixed it. Check if you have the latest/correct firmware versions.