public static interface BrickServo.VelocityReachedListener extends DeviceListener
BrickServo.setVelocity(short, int)
is reached. The parameters are the servo and the velocity that is reached.
You can enable this listener with BrickServo.enableVelocityReachedCallback()
.
\note
Since we can't get any feedback from the servo, this only works if the
acceleration (see BrickServo.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.Modifier and Type | Method and Description |
---|---|
void |
velocityReached(short servoNum,
short velocity) |
Copyright © 2020 Tinkerforge GmbH. All rights reserved.