Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mission_raw: add method to import plan from string #305

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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