Skip to content

Commit

Permalink
Merge pull request mavlink#217 from amadoruavs/set-actuator
Browse files Browse the repository at this point in the history
Add set actuator
  • Loading branch information
julianoes authored May 4, 2021
2 parents 8246091 + ec8ce8c commit bc98c07
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions protos/action/action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ service ActionService {
* it implies a change to a PX4-specific mode.
*/
rpc Hold(HoldRequest) returns(HoldResponse) {}
/*
* Send command to set the value of an actuator.
*/
rpc SetActuator(SetActuatorRequest) returns(SetActuatorResponse) {}
/*
* Send command to transition the drone to fixedwing.
*
Expand Down Expand Up @@ -221,6 +225,14 @@ message HoldResponse {
ActionResult action_result = 1;
}

message SetActuatorRequest {
int32 index = 1; // Index of actuator (starting with 1)
float value = 2; // Value to set the actuator to (normalized from [-1..1])
}
message SetActuatorResponse {
ActionResult action_result = 1;
}

message TransitionToFixedwingRequest {}
message TransitionToFixedwingResponse {
ActionResult action_result = 1;
Expand Down

0 comments on commit bc98c07

Please sign in to comment.