lejos.robotics
Interface Encoder

All Known Subinterfaces:
Tachometer, TachoMotor, TachoMotorPort
All Known Implementing Classes:
Motor, MotorPort, RCXRotationSensor, RemoteMotor, RemoteMotorPort

public interface Encoder

Abstraction for the tachometer built into NXT motors.

Rating red

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.