lejos.robotics
Interface Encoder

All Known Subinterfaces:
EncoderMotor, LinearActuator, RegulatedMotor, Tachometer, TachoMotorPort
All Known Implementing Classes:
LnrActrFirgelliNXT, MirrorMotor, MMXMotor, MMXRegulatedMotor, MotorPort, NXTMotor, RCXRotationSensor, RemoteMotor, RemoteMotorPort

public interface Encoder

Abstraction for the tachometer built into NXT motors.

Author:
Lawrie Griffiths

Method Summary
 int getTachoCount()
          Returns the tachometer count.
 void resetTachoCount()
          Reset the tachometer count.
 

Method Detail

getTachoCount

int getTachoCount()
Returns the tachometer count.

Returns:
tachometer count in degrees

resetTachoCount

void resetTachoCount()
Reset the tachometer count.