Skip to content

Commit

Permalink
Action: add InvalidArgument (#335)
Browse files Browse the repository at this point in the history
* action: add InvalidArgument result

Required for set_actuator.

Signed-off-by: Julian Oes <julian@oes.ch>

* action: note about set_actuator args

Signed-off-by: Julian Oes <julian@oes.ch>

---------

Signed-off-by: Julian Oes <julian@oes.ch>
  • Loading branch information
julianoes authored Apr 5, 2024
1 parent d3963ba commit 4ad8a78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protos/action/action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ service ActionService {
rpc Hold(HoldRequest) returns(HoldResponse) {}
/*
* Send command to set the value of an actuator.
*
* Note that the index of the actuator starts at 1 and that the value goes from -1 to 1.
*/
rpc SetActuator(SetActuatorRequest) returns(SetActuatorResponse) {}
/*
Expand Down Expand Up @@ -314,6 +316,7 @@ message ActionResult {
RESULT_PARAMETER_ERROR = 11; // Error getting or setting parameter
RESULT_UNSUPPORTED = 12; // Action not supported
RESULT_FAILED = 13; // Action failed
RESULT_INVALID_ARGUMENT = 14; // Invalid argument
}

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

0 comments on commit 4ad8a78

Please sign in to comment.