Interface AbsoluteEncoder
- All Known Implementing Classes:
SparkAbsoluteEncoder
public interface AbsoluteEncoder
-
Method Summary
Modifier and TypeMethodDescriptionGet the position of the motor.Get the velocity of the motor.
-
Method Details
-
getPosition
Get the position of the motor. This returns the native units of 'rotations' by default, and can be changed by a scale factor usingAbsoluteEncoderConfig.positionConversionFactor(double).- Returns:
- Number of rotations of the motor
-
getVelocity
Get the velocity of the motor. This returns the native units of 'rotations per minute' by default, and can * be changed by a scale factor usingAbsoluteEncoderConfig.velocityConversionFactor(double).- Returns:
- Number of rotations per minute of the motor
-