Skip to content

Commit

Permalink
add PublishDistanceSensor()
Browse files Browse the repository at this point in the history
  • Loading branch information
potaito committed Jan 26, 2023
1 parent 1c7e8fa commit ef721c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions protos/telemetry_server/telemetry_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ service TelemetryServerService {
rpc PublishRawImu(PublishRawImuRequest) returns(PublishRawImuResponse) { option (mavsdk.options.async_type) = SYNC; }
// Publish to 'unix epoch time' updates.
rpc PublishUnixEpochTime(PublishUnixEpochTimeRequest) returns(PublishUnixEpochTimeResponse) { option (mavsdk.options.async_type) = SYNC; }
// Publish to "distance sensor" updates.
rpc PublishDistanceSensor(PublishDistanceSensorRequest) returns(PublishDistanceSensorResponse) { option (mavsdk.options.async_type) = SYNC; }
}

message PublishPositionRequest {
Expand Down Expand Up @@ -119,6 +121,10 @@ message PublishUnixEpochTimeRequest {
uint64 time_us = 1; // The next 'unix epoch time' status
}

message PublishDistanceSensorRequest {
DistanceSensor distance_sensor = 1; // The next 'Distance Sensor' status
}

message PublishPositionResponse {
TelemetryServerResult telemetry_server_result = 1;
}
Expand Down Expand Up @@ -177,6 +183,10 @@ message PublishUnixEpochTimeResponse {
TelemetryServerResult telemetry_server_result = 1;
}

message PublishDistanceSensorResponse {
TelemetryServerResult telemetry_server_result = 1;
}

// Position type in global coordinates.
message Position {
double latitude_deg = 1 [(mavsdk.options.default_value)="NaN"]; // Latitude in degrees (range: -90 to +90)
Expand Down

0 comments on commit ef721c5

Please sign in to comment.