DJI Mobile SDK Documentation

      class FollowMeMissionOperator

      class FollowMeMissionOperator
      Package:dji.sdk.mission.followme
      Description:

      The follow me mission operator is the only object that controls, runs and monitors FollowMe Missions. It can be accessed from MissionControl.

      Class Members:
      Current State
      method
      method getCurrentState
      @NonNull
      FollowMeMissionState getCurrentState()
      Package:dji.sdk.mission.followme
      Description:

      The current state of the executing Follow Me mission.

      Return:
      FollowMeMissionStateAn object of FollowMeMissionState.
      Add Listener
      method
      method addListener
      void addListener(@NonNull FollowMeMissionOperatorListener listener)
      Package:dji.sdk.mission.followme
      Description:

      Adds a new listener of all events.

      Input Parameters:
      @NonNull FollowMeMissionOperatorListener listenerAn interface of FollowMeMissionOperatorListener.
      Remove Listener
      method
      method removeListener
      void removeListener(@NonNull FollowMeMissionOperatorListener targetListener)
      Package:dji.sdk.mission.followme
      Description:

      Removes listener.

      Input Parameters:
      @NonNull FollowMeMissionOperatorListener targetListenerAn interface of FollowMeMissionOperatorListener.
      method removeAllListeners
      void removeAllListeners()
      Package:dji.sdk.mission.followme
      Description:

      Remove all listeners.

      Start Mission
      method
      method startMission
      void startMission(@NonNull final FollowMeMission mission, @Nullable final CompletionCallback callback)
      Package:dji.sdk.mission.followme
      Description:

      Starts to execute a Follow Me mission. It can only be called when the getCurrentState is READY_TO_EXECUTE. After a mission is started successfully, the getCurrentState will become EXECUTING.

      Input Parameters:
      @NonNull final FollowMeMission missionAn object of FollowMeMission.
      @Nullable final CompletionCallback callbackThe execution callback with the execution result returned.
      Stop Mission
      method
      method stopMission
      void stopMission(@Nullable CompletionCallback callback)
      Package:dji.sdk.mission.followme
      Description:

      Stops the executing mission. It can only be called when the getCurrentState is EXECUTING. After a mission is stopped successfully, getCurrentState will become READY_TO_EXECUTE.

      Input Parameters:
      @Nullable CompletionCallback callbackThe execution callback with the execution result returned.
      method updateFollowingTarget
      void updateFollowingTarget(@NonNull LocationCoordinate2D location,
      @Nullable final CompletionCallback callback)
      Package:dji.sdk.mission.followme
      Description:

      Update the Follow Me mission's target location to follow.

      Input Parameters:
      @NonNull LocationCoordinate2D locationA LocationCoordinate2D object.
      @Nullable final CompletionCallback callbackThe execution callback with the execution result returned.
      Get Following Target
      method
      method getFollowingTarget
      @NonNull
      LocationCoordinate2D getFollowingTarget()
      Package:dji.sdk.mission.followme
      Description:

      Get the following target's coordinate location.

      Return:
      LocationCoordinate2DA location object of LocationCoordinate2D.