Skip to content

Commit

Permalink
Full gimbal angle control (#328)
Browse files Browse the repository at this point in the history
* Added gimbal function SetAngles

* Fixed typo

* Changed order of angles to MAVLink order

---------

Co-authored-by: Adrian Dummermuth <[email protected]>
  • Loading branch information
Daybreakerflint and Adrian Dummermuth authored Jan 23, 2024
1 parent a10b832 commit 736bc2a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions protos/gimbal/gimbal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ option java_outer_classname = "GimbalProto";

// Provide control over a gimbal.
service GimbalService {
/*
*
* Set gimbal roll, pitch and yaw angles.
*
* This sets the desired roll, pitch and yaw angles of a gimbal.
* Will return when the command is accepted, however, it might
* take the gimbal longer to actually be set to the new angles.
*/
rpc SetAngles(SetAnglesRequest) returns(SetAnglesResponse) {}
/*
*
* Set gimbal pitch and yaw angles.
Expand Down Expand Up @@ -71,6 +80,15 @@ service GimbalService {
rpc SubscribeControl(SubscribeControlRequest) returns(stream ControlResponse) {}
}

message SetAnglesRequest {
float roll_deg = 1; // Roll angle in degrees
float pitch_deg = 2; // Pitch angle in degrees (negative points down)
float yaw_deg = 3; // Yaw angle in degrees (positive is clock-wise, range: -180 to 180 or 0 to 360)
}
message SetAnglesResponse {
GimbalResult gimbal_result = 1;
}

message SetPitchAndYawRequest {
float pitch_deg = 1; // Pitch angle in degrees (negative points down)
float yaw_deg = 2; // Yaw angle in degrees (positive is clock-wise, range: -180 to 180 or 0 to 360)
Expand Down

0 comments on commit 736bc2a

Please sign in to comment.