Skip to content

Commit

Permalink
Merge pull request #305 from mavlink/pr-mission-import-from-string
Browse files Browse the repository at this point in the history
mission_raw: add method to import plan from string
  • Loading branch information
JonasVautherin authored Dec 22, 2022
2 parents dd2fd5b + aaef57d commit 9826ebe
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion protos/mission_raw/mission_raw.proto
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ service MissionRawService {
*/
rpc SubscribeMissionChanged(SubscribeMissionChangedRequest) returns(stream MissionChangedResponse) { option (mavsdk.options.async_type) = ASYNC; }
/*
* Import a QGroundControl missions in JSON .plan format.
* Import a QGroundControl missions in JSON .plan format, from a file.
*
* Supported:
* - Waypoints
Expand All @@ -85,6 +85,16 @@ service MissionRawService {
* - Structure Scan
*/
rpc ImportQgroundcontrolMission(ImportQgroundcontrolMissionRequest) returns(ImportQgroundcontrolMissionResponse) { option (mavsdk.options.async_type) = SYNC; }
/*
* Import a QGroundControl missions in JSON .plan format, from a string.
*
* Supported:
* - Waypoints
* - Survey
* Not supported:
* - Structure Scan
*/
rpc ImportQgroundcontrolMissionFromString(ImportQgroundcontrolMissionFromStringRequest) returns(ImportQgroundcontrolMissionFromStringResponse) { option (mavsdk.options.async_type) = SYNC; }
}

message UploadMissionRequest {
Expand Down Expand Up @@ -164,6 +174,14 @@ message ImportQgroundcontrolMissionResponse {
MissionImportData mission_import_data = 2; // The imported mission data
}

message ImportQgroundcontrolMissionFromStringRequest {
string qgc_plan = 1; // QGC plan as string
}
message ImportQgroundcontrolMissionFromStringResponse {
MissionRawResult mission_raw_result = 1;
MissionImportData mission_import_data = 2; // The imported mission data
}

// Mission progress type.
message MissionProgress {
int32 current = 1; // Current mission item index (0-based), if equal to total, the mission is finished
Expand Down

0 comments on commit 9826ebe

Please sign in to comment.