Package com.tinkerforge
Interface BrickServo.VelocityReachedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickServo
public static interface BrickServo.VelocityReachedListener extends DeviceListener
This listener is triggered when a velocity set byBrickServo.setVelocity(short, int)
is reached. The parameters are the servo and the velocity that is reached. You can enable this listener withBrickServo.enableVelocityReachedCallback()
. \note Since we can't get any feedback from the servo, this only works if the acceleration (seeBrickServo.setAcceleration(short, int)
) is set smaller or equal to the maximum acceleration 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
velocityReached(short servoNum, short velocity)
-