From d51576e60309c99c9ddcd9e398887cdad9720ae5 Mon Sep 17 00:00:00 2001 From: Jon Reeves Date: Mon, 9 Dec 2024 10:37:35 -0700 Subject: [PATCH 1/2] Added outgoing mission response subscription API --- protos/mission_raw_server/mission_raw_server.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/protos/mission_raw_server/mission_raw_server.proto b/protos/mission_raw_server/mission_raw_server.proto index 210a1d163..340d8927d 100644 --- a/protos/mission_raw_server/mission_raw_server.proto +++ b/protos/mission_raw_server/mission_raw_server.proto @@ -15,6 +15,11 @@ service MissionRawServerService { */ rpc SubscribeIncomingMission(SubscribeIncomingMissionRequest) returns(stream IncomingMissionResponse) {} + /* + * Subscribe to the result of outgoing mission download requests (air to ground) + */ + rpc SubscribeOutgoingMissionResult(SubscribeOutgoingMissionRequest) returns(stream OutgoingMissionResult) {} + /* * Subscribe to when a new current item is set */ @@ -37,6 +42,11 @@ message IncomingMissionResponse { MissionPlan mission_plan = 2; // The mission plan } +message SubscribeOutgoingMissionRequest {} +message OutgoingMissionResult { + MissionRawServerResult mission_raw_server_result = 1; +} + message SubscribeCurrentItemChangedRequest {} message CurrentItemChangedResponse { MissionItem mission_item = 1; From 0191c6c6c4bb0b40cb71ba2470fb8e7929244d47 Mon Sep 17 00:00:00 2001 From: Jon Reeves Date: Mon, 9 Dec 2024 12:10:34 -0700 Subject: [PATCH 2/2] Consistent naming convention --- protos/mission_raw_server/mission_raw_server.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protos/mission_raw_server/mission_raw_server.proto b/protos/mission_raw_server/mission_raw_server.proto index 340d8927d..a57f80b43 100644 --- a/protos/mission_raw_server/mission_raw_server.proto +++ b/protos/mission_raw_server/mission_raw_server.proto @@ -18,7 +18,7 @@ service MissionRawServerService { /* * Subscribe to the result of outgoing mission download requests (air to ground) */ - rpc SubscribeOutgoingMissionResult(SubscribeOutgoingMissionRequest) returns(stream OutgoingMissionResult) {} + rpc SubscribeOutgoingMissionResult(SubscribeOutgoingMissionRequest) returns(stream OutgoingMissionResponse) {} /* * Subscribe to when a new current item is set @@ -43,7 +43,7 @@ message IncomingMissionResponse { } message SubscribeOutgoingMissionRequest {} -message OutgoingMissionResult { +message OutgoingMissionResponse { MissionRawServerResult mission_raw_server_result = 1; }