orc
Class QuadratureEncoder

java.lang.Object
  extended by orc.QuadratureEncoder

public class QuadratureEncoder
extends java.lang.Object

Represents a quadrature phase decoder input on the uOrc Board.


Constructor Summary
QuadratureEncoder(Orc orc, int port, boolean invert)
           
 
Method Summary
 int getPosition()
           
 int getPosition(OrcStatus status)
           
 double getVelocity()
          In ticks per second (XXX: Might return unsigned speed due to hardware errata!).
 double getVelocity(OrcStatus status)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadratureEncoder

public QuadratureEncoder(Orc orc,
                         int port,
                         boolean invert)
Method Detail

getPosition

public int getPosition()

getPosition

public int getPosition(OrcStatus status)

getVelocity

public double getVelocity()
In ticks per second (XXX: Might return unsigned speed due to hardware errata!).


getVelocity

public double getVelocity(OrcStatus status)