Interface Encoder


public interface Encoder
Simple interface used for communicating with encoders.
Since:
0.1.0
Author:
Colin Robertson
  • Method Summary

    Modifier and Type Method Description
    int getCount()
    Get the encoder's current count.
    double getCpr()
    Get the encoder's CPR (counts per rotation).
  • Method Details

    • getCount

      int getCount()
      Get the encoder's current count.
      Returns:
      the encoder's count.
    • getCpr

      double getCpr()
      Get the encoder's CPR (counts per rotation).
      Returns:
      the encoder's counts per rotation.