rotation

val rotation: Rotation2d

Gets the absolute position of the encoder as a Rotation2d.

This is particularly useful for swerve modules where angles are commonly represented as Rotation2d objects.

Return

Current absolute position as Rotation2d.