Package com.tinkerforge
Interface BrickStepper.PositionReachedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickStepper
public static interface BrickStepper.PositionReachedListener extends DeviceListener
This listener is triggered when a position set byBrickStepper.setSteps(int)
orBrickStepper.setTargetPosition(int)
is reached. \note Since we can't get any feedback from the stepper motor, this only works if the acceleration (seeBrickStepper.setSpeedRamping(int, int)
) is set smaller or equal to the maximum acceleration of the motor. Otherwise the motor will lag behind the control value and the listener will be triggered too early.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
positionReached(int position)
-