|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegulatedMotorListener
This interface defines a listener that is notified of the tachometer when the motor starts and stops rotating. It doesn't matter if start/stop rotation is caused by Motor.forward() or Motor.rotateTo(), or if the rotation is terminated by rotationTo() finishing naturally or by stop(). If the motor state changes directly from forward() to backward(), then a stop() is called in between which results in a new rotationEnded() and rotationStarted() notification.
Method Summary | |
---|---|
void |
rotationStarted(RegulatedMotor motor,
int tachoCount,
boolean stalled,
long timeStamp)
Called when the motor starts rotating. |
void |
rotationStopped(RegulatedMotor motor,
int tachoCount,
boolean stalled,
long timeStamp)
Called when the motor stops rotating. |
Method Detail |
---|
void rotationStarted(RegulatedMotor motor, int tachoCount, boolean stalled, long timeStamp)
void rotationStopped(RegulatedMotor motor, int tachoCount, boolean stalled, long timeStamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |