Loads the WaypointMission into device memory. This also verifies all the information of mission. If something is incorrect, callback.result() will be called with an Error. Otherwise, callback.result() will be called with a null value. The mission object will remain in device memory even after the WaypointMission execution has finished.
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 or interrupted.
Gets the interruption of the last waypoint mission. If a waypoint mission is interrupted before the completion, the aircraft will record the interruption information. This information is only available when the last waypoint mission is incomplete and the first waypoint of the mission has been reached. The interruption will also be recorded if the mission is stopped by the user. The interruption information is recorded in the aircraft and the information persists even after the aircraft's reboot. Supported only by Phantom 4 RTK.
Downloads information of each waypoint from aircraft and save it to getLoadedMission. If a download operation is started, 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 getCurrentState is one of the following: - EXECUTING - EXECUTION_PAUSED
voidsetAutoFlightSpeed(@FloatRange(from = -15.0f, to = 15.0f)float speed,
@Nullable CompletionCallback callback)
Set the flight speed while the mission is executing automatically (without manual joystick speed input). This is the only property or method in this class that can communicate with the aircraft during a mission. All other properties and methods are used offline to prepare the mission which is then uploaded to the aircraft.
@FloatRange(from = -15.0f, to = 15.0f) float speed