Interface Encoder

All Known Subinterfaces:
PIDMotor

public interface Encoder
Specifies a device that can perceive rotational positions.
  • Method Details

    • getPositionMeasure

      Angle getPositionMeasure()
      Gets the position of the encoder
      Returns:
      the position of the encoder as a measure
    • setPosition

      void setPosition(Angle position)
      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