Package com.tinkerforge
Interface BrickletServoV2.PositionReachedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletServoV2
public static interface BrickletServoV2.PositionReachedListener extends DeviceListener
This listener is triggered when a position set byBrickletServoV2.setPosition(int, int)
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 withBrickletServoV2.setPositionReachedCallbackConfiguration(int, boolean)
. \note Since we can't get any feedback from the servo, this only works if the velocity (seeBrickletServoV2.setMotionConfiguration(int, long, long, long)
) 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(int servoChannel, int position)
-