| java.lang.Object | ||
| ↳ | dji.sdk.base.DJIBaseComponent | |
| ↳ | dji.sdk.missionmanager.DJIMissionManager | |
This class manages the execution cycle for a mission. To execute a mission, normally the user must first invoke prepareMission() to prepare the mission. Then the user can call startMissionExecution() to start the prepared mission. The user can also pause, resume, or stop an executing mission if the mission supports the operation.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | DJIMissionManager.MissionProgressStatusCallback | This interface provides the method to update mission progress status. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public boolean | isMissionReadyToExecute | This field is deprecated. This property will be deleted in the coming version. | |||||||||
| public boolean | mIsCustomMissionExecuting | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
dji.sdk.base.DJIBaseComponent
| |||||||||||
From class
java.lang.Object
| |||||||||||
This field is deprecated.
This property will be deleted in the coming version.
Downloads the current mission configuration data from aircraft. This method should only be called after a mission has been prepared. Only waypoint missions and hot point missions can be downloaded from the aircraft.
| downloadProgress | Progress handler callback method to monitor download progress. |
|---|---|
| callback | The execution callback with the returned execution result. |
Returns current executing mission. This method is should only be called after the mission has started execution.
true if the mission manager is connected.
Pauses the current mission being executed. The aircraft will hover in its current location. The current state will be saved until resumeMissionExecution() is called. Returns a system busy error if the MissionManager is uploading or downloading the mission.
| callback | The execution callback with the returned execution result. |
|---|
Prepares the mission for execution. For the waypoint mission, data must be uploaded to the aircraft (product) and the DJIMissionProgressHandler can be used to monitor upload progress. The follow-me, panorama, hotpoint and custom missions require much shorter time for the preparation phase. PrepareMission should fail if a mission is currently executing.
| mission | Mission object. |
|---|---|
| progressHandler | Progress handler callback method to monitor preparation progress. |
| callback | The execution callback with the returned execution result. |
Resumes the currently paused mission. Returns a system busy error if the MissionManager is uploading or downloading the mission.
| callback | The execution callback with the returned execution result. |
|---|
Set up the Mission Execution Finished Callback.
Set up the Mission Progress Status Callback.
Starts mission execution. This should only be called after prepareMission is successfully called. For a waypoint mission, if the aircraft isn't flying, it will automatically take off and execute the mission. For hot point and follow me mission, the aircraft needs to be flying before the mission is started. For a custom mission, the behaviour depends on the first mission step.
| callback | The execution callback with the returned execution result. |
|---|
Stops the current mission. The aircraft will hover in place. Returns a system busy error if the MissionManager is uploading or downloading the mission.
| callback | The execution callback with the returned execution result. |
|---|