Skip to content

Commit

Permalink
arm_authorizer_server: fixup package names (#336)
Browse files Browse the repository at this point in the history
* arm_authorizer_server: fixup package names

Signed-off-by: Julian Oes <[email protected]>

* Autorizer -> Authorizer

Signed-off-by: Julian Oes <[email protected]>

* arm_authorizer_server: we need an unknown result

Signed-off-by: Julian Oes <[email protected]>

* arm_authorizer_server: fixup subscription naming

Signed-off-by: Julian Oes <[email protected]>

---------

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes authored Apr 6, 2024
1 parent 4ad8a78 commit 1acb789
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions protos/arm_authorizer_server/arm_authorizer_server.proto
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
syntax = "proto3";

package mavsdk.rpc.arm_authorizer;
package mavsdk.rpc.arm_authorizer_server;

import "mavsdk_options.proto";

option java_package = "io.mavsdk.arm_authorizer";
option java_outer_classname = "ArmAuthorizerProto";
option java_outer_classname = "ArmAuthorizerServerProto";

service ArmAuthorizerServerService {
// Subscribe to arm authorization request messages. Each request received should respond to using RespondArmAuthorization
rpc SubscribeArmAuthorization(SubscribeArmAuthorizationRequest) returns(stream SubscribeArmAuthorizationResponse) { option (mavsdk.options.async_type) = ASYNC; }
rpc SubscribeArmAuthorization(SubscribeArmAuthorizationRequest) returns(stream ArmAuthorizationResponse) { option (mavsdk.options.async_type) = ASYNC; }

// Authorize arm for the specific time
rpc AcceptArmAuthorization(AcceptArmAuthorizationRequest) returns(AcceptArmAuthorizationResponse) { option (mavsdk.options.async_type) = SYNC; }
Expand All @@ -20,7 +20,7 @@ service ArmAuthorizerServerService {

// Messages for SubscribeArmAuthorization
message SubscribeArmAuthorizationRequest {}
message SubscribeArmAuthorizationResponse {
message ArmAuthorizationResponse {
uint32 system_id = 1; // vehicle system id
}

Expand All @@ -31,7 +31,7 @@ message AcceptArmAuthorizationRequest {

// Result type
message AcceptArmAuthorizationResponse {
ArmAutorizerServerResult arm_authorizer_server_result = 1; // Result enum value
ArmAuthorizerServerResult arm_authorizer_server_result = 1; // Result enum value
}

// Messages for RespondArmAuthorization
Expand All @@ -43,13 +43,14 @@ message RejectArmAuthorizationRequest {

// Result type
message RejectArmAuthorizationResponse {
ArmAutorizerServerResult arm_authorizer_server_result = 1; // Result enum value
ArmAuthorizerServerResult arm_authorizer_server_result = 1; // Result enum value
}

message ArmAutorizerServerResult {
message ArmAuthorizerServerResult {
enum Result {
RESULT_SUCCESS = 0; // Command accepted
RESULT_FAILED = 1; // Command failed
RESULT_UNKNOWN = 0; // Unknown result
RESULT_SUCCESS = 1; // Command accepted
RESULT_FAILED = 2; // Command failed
}

Result result = 1; // Result enum value
Expand Down

0 comments on commit 1acb789

Please sign in to comment.