lejos.robotics
Interface Tachometer

All Superinterfaces:
Encoder
All Known Subinterfaces:
TachoMotor
All Known Implementing Classes:
Motor, RCXRotationSensor, RemoteMotor

public interface Tachometer
extends Encoder

Abstraction for a Tachometer, which monitors speed of the encoder.

Author:
BB

Method Summary
 int getRotationSpeed()
          Returns the actual speed.
 
Methods inherited from interface lejos.robotics.Encoder
getTachoCount, resetTachoCount
 

Method Detail

getRotationSpeed

int getRotationSpeed()
Returns the actual speed. This value is calculated every 100 ms on the NXT. TODO: getRotationSpeed() is an alternate method name, but then we are again competing with Motor.getSpeed()

Returns:
speed in degrees per second, negative value means motor is rotating backward