Package com.tinkerforge
Interface BrickletDCV2.VelocityReachedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletDCV2
public static interface BrickletDCV2.VelocityReachedListener extends DeviceListener
This listener is triggered whenever a set velocity is reached. For example: If a velocity of 0 is present, acceleration is set to 5000 and velocity to 10000, theBrickletDCV2.VelocityReachedListener
listener will be triggered after about 2 seconds, when the set velocity is actually reached. \note Since we can't get any feedback from the DC motor, this only works if the acceleration (seeBrickletDCV2.setMotion(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
velocityReached(int velocity)
-