The state of the operator is unknown. It is the initial action state when the operator is just created.
DISCONNECTED
The connection between the mobile device, remote controller and aircraft is broken.
RECOVERING
The connection between the mobile device, remote controller and aircraft is built-up. The operator is synchronizing the action state from the aircraft.
NOT_SUPPORTED
The connected product does not support waypoint mission 2.0.
READY_TO_UPLOAD
The aircraft is ready to upload actions.
UPLOADING
The uploading is started successfully. Detail information for each action is being uploaded one by one.
READY_TO_EXECUTE
Waypoint mission is uploaded completely and the aircraft is ready to start the execution.
Executing
The execution is started successfully.
Interrupted
Waypoint mission is interrupted successfully. User can call interruptMission to continue the execution.
Determines the recover mission flying to which point. call recoverMission to recover mission. The waypoint mission is interrupted by invoking interruptMission. The waypoint mission is interrupted by moving remote controller's joystick. Other interruption such as obstacle avoidance.
Enum Members:
GoBackToRecordPoint
When the mission is recovered, the aircraft flying to the recorded point.
GoBackToNextPoint
When the mission is recovered, the aircraft flying to next waypoint.
Actions will be taken when the waypoint mission is finished.
Enum Members:
NO_ACTION
No further action will be taken. The aircraft can be controlled by the remote controller.
GO_HOME
Goes home when the mission is finished. The aircraft will land directly if it is within 20 meters away from the home point.
AUTO_LAND
The aircraft will land automatically at the last waypoint.
GO_FIRST_WAYPOINT
The aircraft will go back to the first waypoint and hover.
CONTINUE_UNTIL_STOP
When the aircraft reaches its final waypoint, it will hover without ending the mission. The joystick can still be used to pull the aircraft back along its previous waypoints. The only way this mission can end is if stopMission is called.
Gets the currently loaded mission of the operator. There are two ways to load a mission. 1. A mission can be loaded by user through loadMission. 2. If the aircraft is already executing a waypoint mission when SDK is re-connected, the operator will download part of the mission's information from the aircraft and load it automatically. In that case, the loaded mission will only contain the summary of the executing mission but information for each waypoint is absent. User can call downloadMission to get all the information for the loaded mission. The getLoadedMission will be reset to null when the execution of the loadedMission is stopped, finished.
Gets the currently loaded actions count of the operator. There are two ways to load a mission. 1. Actions can be loaded by user through loadMission. 2. If the aircraft is already executing a waypoint mission and it has uploaded actions when SDK is re-connected, the operator will recover uploaded action count.
Gets the count of loaded actions in current operator. There are two ways to load a mission. 1. Actions can be loaded by user through loadMission. 2. If the aircraft is already executing a waypoint mission and it has uploaded actions when SDK is re-connected, the operator will recover uploaded action count. load it automatically. In that case, the loaded actions will be null, if user want get summary of the executing actions user can call downloadMission to get all the information for the loaded actions. The getLoadedActions will be reset to null when the execution of the getLoadedMission is stopped, finished.
Starts to upload the getLoadedMission to the aircraft. It can only be called when the getLoadedMission is complete and the DJIWaypointV2MissionActionExecutionEvent_currentState is READY_TO_UPLOAD. If a timeout error occurs during the previous upload, the upload operation will resume from the previous break-point. After a mission is uploaded successfully, the WaypointV2MissionState will become READY_TO_EXECUTE. If it is started successfully, use DJIWaypointV2MissionOperator_Listener_onUploadUpdate to receive the detailed progress.
Callback will be invoked with the result if the upload command has been received successfully by the aircraft. If the upload command is successfully sent, use addWaypointEventListener to check the detailed progress.
Starts to upload the getLoadedActions to the aircraft. It can only be called when the getLoadedActions is complete and the DJIWaypointV2MissionActionExecutionEvent_currentState is READY_TO_EXECUTE. If a timeout error occurs during the previous upload, the upload operation will resume from the previous break-point. After a mission is uploaded successfully, the DJIWaypointV2MissionActionState will become READY_TO_EXECUTE.
Callback will be invoked with the result if the upload action command has been received successfully by the aircraft. If the upload command is successfully sent, use addActionListener to check the detailed progress.
Downloads information of each waypoint from aircraft and save it to getLoadedMission. If a download operation starts, the operator will download the information of waypoints missing in getLoadedMission one-by-one in ascending order. If getLoadedMission is already complete (containing all the waypoints), this method will call completion immediately without error. It can only be called when the DJIWaypointV2MissionActionExecutionEvent_currentState is one of the following: - Executing - INTERRUPTED.
Callback that will be called when the download operation succeeds or fails to start. If it is started successfully, use DJIWaypointV2MissionOperator_Listener_onDownloadUpdate to receive the detailed progress.
Downloads information of Actions from startActionID to endActionID. The information of waypoints missing in getLoadedMission ascending order. If getLoadedMission is already complete (containing all the waypoints), this method will call completion immediately without error. It can only be called when the DJIWaypointV2MissionActionExecutionEvent_currentState is one of the following: - Executing - INTERRUPTED
Callback that will be called when the download operation succeeds or fails to start. If it is started successfully, use DJIWaypointV2MissionOperator_addListenerToDownloadEvent to receive the detailed progress.
Removes listener. If the same listener is listening to multiple events and notifications (e.g. upload event and download event), it will not receive any update of them.
Removes listener. If the same listener is listening to multiple events and notifications (e.g. upload event and download event), it will not receive any update of them.
Starts the execution of the uploaded mission. It can only be called when the DJIWaypointV2MissionActionExecutionEvent_currentState is READY_TO_EXECUTE. After a mission is started successfully, the DJIWaypointV2MissionActionExecutionEvent_currentState will become Executing.
Pauses the executing mission. It can only be called when the WaypointV2MissionState is Executing. After a mission is paused successfully, the DJIWaypointV2MissionActionExecutionEvent_currentState will become INTERRUPTED.
Resumes the paused mission. It can only be called when the DJIWaypointV2MissionActionExecutionEvent_currentState is INTERRUPTED. After a mission is resumed successfully, the DJIWaypointV2MissionActionExecutionEvent_currentState will become Executing.
Resumes the paused mission with recover type. It can only be called when the DJIWaypointV2MissionActionExecutionEvent_currentState is INTERRUPTED. After a mission is resumed successfully, the DJIWaypointV2MissionActionExecutionEvent_currentState will become Executing.
Stops the executing or paused mission. It can only be called when the DJIWaypointV2MissionActionExecutionEvent_currentState is one of the following: - Executing - INTERRUPTED After a mission finishes successfully, DJIWaypointV2MissionActionExecutionEvent_currentState will become READY_TO_UPLOAD.