Interface AnimationItf

  • All Superinterfaces:
    PilotingItf

    public interface AnimationItf
    extends PilotingItf
    Piloting interface capable of commanding a drone to execute automatic animations.
    • Method Detail

      • getAvailableAnimations

        @NonNull
        EnumSet<Animation.Type> getAvailableAnimations()
        Retrieves currently executable animation types.
        Returns:
        a set of animation types that can currently be executed by the drone
      • getCurrentAnimation

        @Nullable
        Animation getCurrentAnimation()
        Retrieves currently executing animation.
        Returns:
        current animation, or null if no animation is currently executing
      • startAnimation

        boolean startAnimation​(@NonNull
                               Animation.Config animConfig)
        Executes an animation.
        Parameters:
        animConfig - configuration of the animation to execute
        Returns:
        true if an animation execution request was sent to the drone, otherwise false
      • abortCurrentAnimation

        boolean abortCurrentAnimation()
        Aborts any currently executing animation.
        Returns:
        true if an animation cancellation request was sent to the drone, otherwise false