Skip to content

Commit

Permalink
Merge pull request mavlink#246 from bazfp/global_heading
Browse files Browse the repository at this point in the history
Add heading type to telemetry plugins
  • Loading branch information
JonasVautherin authored Aug 26, 2021
2 parents 96a0ca8 + 6578ea7 commit d5bcefa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions protos/telemetry/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ service TelemetryService {
rpc SubscribeDistanceSensor(SubscribeDistanceSensorRequest) returns(stream DistanceSensorResponse) {}
// Subscribe to 'Scaled Pressure' updates.
rpc SubscribeScaledPressure(SubscribeScaledPressureRequest) returns(stream ScaledPressureResponse) {}
// Subscribe to 'Heading' updates.
rpc SubscribeHeading(SubscribeHeadingRequest) returns(stream HeadingResponse) {}

// Set rate to 'position' updates.
rpc SetRatePosition(SetRatePositionRequest) returns(SetRatePositionResponse) {}
Expand Down Expand Up @@ -277,6 +279,11 @@ message ScaledPressureResponse {
ScaledPressure scaled_pressure = 1; // The next Scaled Pressure status
}

message SubscribeHeadingRequest {}
message HeadingResponse {
Heading heading_deg = 1; // The next heading (yaw) in degrees
}

message SetRatePositionRequest {
double rate_hz = 1; // The requested rate (in Hertz)
}
Expand Down Expand Up @@ -456,6 +463,11 @@ message Position {
float relative_altitude_m = 4 [(mavsdk.options.default_value)="NaN"]; // Altitude relative to takeoff altitude in metres
}

// Heading type used for global position
message Heading {
double heading_deg = 1 [(mavsdk.options.default_value)="NaN"]; // Heading in degrees (range: 0 to +360)
}

/*
* Quaternion type.
*
Expand Down
6 changes: 6 additions & 0 deletions protos/telemetry_server/telemetry_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ service TelemetryServerService {
message PublishPositionRequest {
Position position = 1; // The next position
VelocityNed velocity_ned = 2; // The next velocity (NED)
Heading heading = 3; // Heading (yaw) in degrees
}

message PublishHomeRequest {
Expand Down Expand Up @@ -184,6 +185,11 @@ message Position {
float relative_altitude_m = 4 [(mavsdk.options.default_value)="NaN"]; // Altitude relative to takeoff altitude in metres
}

// Heading type used for global position
message Heading {
double heading_deg = 1 [(mavsdk.options.default_value)="NaN"]; // Heading in degrees (range: 0 to +360)
}

/*
* Quaternion type.
*
Expand Down

0 comments on commit d5bcefa

Please sign in to comment.