calibrateToCurrentPosition

Sets the magnet offset to the current position.

This is useful for calibrating swerve modules - align the module to the desired zero position and call this method to set that as the offset.

Example:

// Manually align module to forward position
encoder.calibrateToCurrentPosition()