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:
method getCurrentState
@NonNull FollowMeMissionState getCurrentState()
|
| Package: | dji.sdk.mission.followme |
Description:
The current state of the executing Follow Me mission.
Return:
method addListener
void addListener(@NonNull FollowMeMissionOperatorListener listener)
|
| Package: | dji.sdk.mission.followme |
Description:
Adds a new listener of all events.
method removeListener
void removeListener(@NonNull FollowMeMissionOperatorListener targetListener)
|
| Package: | dji.sdk.mission.followme |
Description:
Removes listener.
method removeAllListeners
void removeAllListeners()
|
| Package: | dji.sdk.mission.followme |
Description:
Remove all listeners.
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.
| @NonNull final FollowMeMission mission | An object of FollowMeMission. |
| @Nullable final CompletionCallback callback | The execution callback with the execution result returned. |
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.
| @Nullable CompletionCallback callback | The 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.
| @NonNull LocationCoordinate2D location | A LocationCoordinate2D object. |
| @Nullable final CompletionCallback callback | The 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: