I'm not sure if this is true or not, but I've been told that a good thing to use for swerve drives are ten-turn potentiometers. The benefit being that you can easily plug it into the following
Code:
angle=(potentiometer_voltage-inherent_zero)*voltage_to_degrees
to get to the angle, whereas with other potentiometers you need to account for some sort of wraparound