Skip to content

Commit

Permalink
param_server: add setting for extended
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Oct 26, 2024
1 parent f4f7eb4 commit 82fb558
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions protos/param_server/param_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ option java_outer_classname = "ParamServerProto";

// Provide raw access to retrieve and provide server parameters.
service ParamServerService {
/*
* Set param protocol.
*
* The extended param protocol is used by default. This allows to use the previous/normal one.
*
* Note that camera definition files are meant to implement/use the extended protocol.
*/
rpc SetProtocol(SetProtocolRequest) returns(SetProtocolResponse) { option (mavsdk.options.async_type) = SYNC; }
/*
* Retrieve an int parameter.
*
Expand Down Expand Up @@ -60,6 +68,13 @@ service ParamServerService {
rpc SubscribeChangedParamCustom(SubscribeChangedParamCustomRequest) returns(stream ChangedParamCustomResponse) { option (mavsdk.options.async_type) = ASYNC; }
}

message SetProtocolRequest {
bool extended_protocol = 1; // Use extended protocol
}
message SetProtocolResponse {
ParamServerResult param_server_result = 1;
}

message RetrieveParamIntRequest {
string name = 1; // Name of the parameter
}
Expand Down

0 comments on commit 82fb558

Please sign in to comment.