IMissionManager
interface IMissionManager
Description: Waypoint task interface: specifying tasks related to waypoint mission
method enterMission
fun enterMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: Enter route mission mode
Input parameters: callback: callback for completion
Output parameters: None。
Related parameters: CompletionCallbackWithParam。
method uploadMissionFile
fun uploadMissionFile(
missionFilePath: String,
callback: CommonCallbacks.CompletionCallbackWithProgress<Double>
)
Description: Upload route task execution file
Input parameters: missionFilePath: mission file path to be upload callback: progress for upload file
Output parameters: None。
Related parameters: CompletionCallbackWithProgress。
method startMission
fun startMission(
missionInfo: MissionInfoJNI,
callback: CommonCallbacks.CompletionCallbackWithProgressAndParam<Void>
)
Description: Generate a waypoint file and enter the waypoint task
Input parameters: missionInfo: mission information callback: callback for progress and params
Output parameters: None。
Related parameters: CompletionCallbackWithProgressAndParam。
method pauseMission
fun pauseMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: Suspension of flight missions
Input parameters: callback: callback for progress with params
Output parameters: None。
Related parameters: CompletionCallbackWithParam。
method resumeMission
fun resumeMission(
param: MissionWaypointGUIDBean,
callback: CommonCallbacks.CompletionCallbackWithParam<Void>
)
Description: Resume flight line missions from where they were paused
Input parameters: param: mission way point GUID model callback: callback for completion
Output parameters: None。
Related parameters: CompletionCallbackWithParam。
method stopMission
fun stopMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: stop flight mission
Input parameters: callback: callback for completion
Output parameters: None。
Related parameters: CompletionCallbackWithParam。
method exitMission
fun exitMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: Exit waypoint mission mode
Input parameters: callback: callback for completion
Output parameters: None。
Related parameters: CompletionCallbackWithParam。
method addWpMissionExecuteStateListener
fun addWaypointMissionExecuteStateListener(listener: CommonCallbacks.KeyListener<MissionWaypointStatusReportNtfyBean>)
Description: Set the listener for the execution status of the route task.
Input parameters: listener: listener for way point status
Output parameters: None。
Related parameters: KeyListener,MissionWaypointStatusReportNtfyBean。
method removeWpMissionExecuteStateListener
fun removeWaypointMissionExecuteStateListener(listener: CommonCallbacks.KeyListener<MissionWaypointStatusReportNtfyBean>)
Description: Remove the listener of the route task execution status
Input parameters: listener: listener for way point status
Output parameters: None。
Related parameters: KeyListener,MissionWaypointStatusReportNtfyBean。
method queryMissionBreakpointInfo
fun queryMissionBreakpointInfo(
param: MissionWaypointGUIDBean,
callback: CommonCallbacks.CompletionCallbackWithParam<MissionWaypointBreakRspBean>
)
Description: Query task breakpoint information
Input parameters: param: mission GUID model callback: callback on complete od way point break response
Output parameters: None。
Related parameters: CompletionCallbackWithParam,MissionWaypointBreakRspBean。
method downloadMissionFile
fun downloadMissionFile(
sourcePath: String,
desPath: String,
callback: CommonCallbacks.CompletionCallbackWithProgress<Double>
)
Description: Download route task execution file
Input parameters: sourcePath: The path of the file to be downloaded on the plane desPath: The file path to download to the local callback: callback for progress
Output parameters: None。
Related parameters: None。
method startMission
fun startMission(
guid: MissionWaypointGUIDBean,
callback: CommonCallbacks.CompletionCallbackWithParam<Void>
)
Description: Start to execute the route task
Input parameters: guid: route task ID callback: callback for stating mission
Output parameters: None。
Related parameters: CompletionCallbackWithParam。
method downloadMissionAutFile
fun downloadMissionAutFile(
sourcePath: String,
desPath: String,
callback: CommonCallbacks.CompletionCallbackWithProgress<Double>
)
Description: Download task execution file
Input parameters: sourcePath: source path desPath: destination path callback: callback for progress of downlaod file
Output parameters: None。
Related parameters: CompletionCallbackWithProgress。
method uploadNestMission
fun uploadNestMission(
filePath: String,
callback: CommonCallbacks.CompletionCallbackWithProgress<Double>
)
Description: Command center task execution, directly upload aut file transparent transmission
Input parameters: filePath: task file callback: callback for progress of upload file
Output parameters: None。
Related parameters: CompletionCallbackWithProgress。