ch.aplu.ftcontroller
Interface MotorListener


public interface MotorListener

Declarations of notification methods.


Method Summary
 void motorStopped(int motorNb, boolean isEnd)
          Notification when the motor stops in RobMode.
 void stepChanged(int motorNb, int step)
          Notification when the step counter changes its value.
 

Method Detail

stepChanged

void stepChanged(int motorNb,
                 int step)
Notification when the step counter changes its value.

Parameters:
motorNb - the motor number.
step - the current value of the step counter

motorStopped

void motorStopped(int motorNb,
                  boolean isEnd)
Notification when the motor stops in RobMode. The stop notification with isEnd = true will only be called, if the end switch is pressed longer than the pooling period of the native thread.

Parameters:
motorNb - the motor number.
isEnd - true, if the motor stopped because the end switch is pressed; false, if it stopped because the step switch counter reaches zero