Interface BrickletPerformanceDC.VelocityReachedListener

  • All Superinterfaces:
    DeviceListener, java.util.EventListener, TinkerforgeListener
    Enclosing class:
    BrickletPerformanceDC

    public static interface BrickletPerformanceDC.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, the BrickletPerformanceDC.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 (see BrickletPerformanceDC.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 Detail

      • velocityReached

        void velocityReached​(int velocity)