Skip to content

Commit

Permalink
Add WindCov proto
Browse files Browse the repository at this point in the history
  • Loading branch information
aminballoon committed Feb 20, 2025
1 parent 87e6c07 commit cab9685
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion protos/telemetry/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ service TelemetryService {
rpc SubscribeHeading(SubscribeHeadingRequest) returns(stream HeadingResponse) {}
// Subscribe to 'Altitude' updates.
rpc SubscribeAltitude(SubscribeAltitudeRequest) returns(stream AltitudeResponse){}
// Subscribe to 'Wind Estimated' updates.
rpc SubscribeWindCov(SubscribeWindCovRequest) returns(stream WindCovResponse){}

// Set rate to 'position' updates.
rpc SetRatePosition(SetRatePositionRequest) returns(SetRatePositionResponse) {}
Expand Down Expand Up @@ -291,6 +293,11 @@ message AltitudeResponse {
Altitude altitude = 1; // The next altitude
}

message SubscribeWindCovRequest {}
message WindCovResponse {
WindCov wind_cov = 1; // The next altitude
}

message SetRatePositionRequest {
double rate_hz = 1; // The requested rate (in Hertz)
}
Expand Down Expand Up @@ -809,6 +816,18 @@ message Altitude {
float bottom_clearance_m = 6 [(mavsdk.options.default_value)="NaN"]; // This is not the altitude, but the clear space below the system according to the fused clearance estimate in meters.
}

// WindCov message type
message WindCov {
float wind_x_ned_m_s = 1 [(mavsdk.options.default_value)="NaN"]; // Wind in North (NED) direction
float wind_y_ned_m_s = 2 [(mavsdk.options.default_value)="NaN"]; // Wind in East (NED) direction
float wind_z_ned_m_s = 3 [(mavsdk.options.default_value)="NaN"]; // Wind in down (NED) direction
float var_horiz_m_s = 4 [(mavsdk.options.default_value)="NaN"]; // Variability of wind in XY, 1-STD estimated from a 1 Hz lowpassed wind estimate
float var_vert_m_s = 5 [(mavsdk.options.default_value)="NaN"]; // Variability of wind in Z, 1-STD estimated from a 1 Hz lowpassed wind estimate
float wind_alt_m = 6 [(mavsdk.options.default_value)="NaN"]; // Altitude (MSL) that this measurement was taken at
float horiz_accuracy_m_s = 7 [(mavsdk.options.default_value)="NaN"]; // Horizontal speed 1-STD accuracy
float vert_accuracy_m_s = 8 [(mavsdk.options.default_value)="NaN"]; // Vertical speed 1-STD accuracy
}

// Result type.
message TelemetryResult {
// Possible results returned for telemetry requests.
Expand All @@ -825,4 +844,4 @@ message TelemetryResult {

Result result = 1; // Result enum value
string result_str = 2; // Human-readable English string describing the result
}
}

0 comments on commit cab9685

Please sign in to comment.