Package com.team2813.lib2813.control
Interface Encoder
- All Known Subinterfaces:
PIDMotor
public interface Encoder
Specifies a device that can perceive rotational positions.
-
Method Summary
Modifier and TypeMethodDescriptionGets the position of the encoderGets the velocity of the encodervoidsetPosition(Angle position) Sets the position of the encoder
-
Method Details
-
getPositionMeasure
Angle getPositionMeasure()Gets the position of the encoder- Returns:
- the position of the encoder as a measure
-
setPosition
Sets the position of the encoder- Parameters:
position- the position of the encoder
-
getVelocityMeasure
AngularVelocity getVelocityMeasure()Gets the velocity of the encoder- Returns:
- The velocity as a measure
-