Package com.tinkerforge
Interface BrickServo.PositionReachedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickServo
public static interface BrickServo.PositionReachedListener extends DeviceListener
This listener is triggered when a position set byBrickServo.setPosition(short, short)
is reached. If the new position matches the current position then the listener is not triggered, because the servo didn't move. The parameters are the servo and the position that is reached. You can enable this listener withBrickServo.enablePositionReachedCallback()
. \note Since we can't get any feedback from the servo, this only works if the velocity (seeBrickServo.setVelocity(short, int)
) is set smaller or equal to the maximum velocity of the servo. Otherwise the servo 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(short servoNum, short position)
-