lejos.robotics
Interface Encoder

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

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.