getAngleError

fun Engu.getAngleError(target: Rotation2d): Rotation2d

Extension to get the angle error between current position and target.

Useful for debugging swerve module alignment.

Return

Angle error as Rotation2d.

Parameters

target

Target angle.