Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions protobuf_definitions/message_formats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1223,3 +1223,26 @@ message CPUInfo {
float guestport_queue_load = 4 ; // Guestport queue load (0..1).
float comm_queue_load = 5; // Communication queue load (0..1).
}

// Surface Unit battery information.
//
// This message is published by the Surface Unit, and re-published by
// the drone over the communication protocol.
message SurfaceUnitBatteryInfo {
enum ChargeStatus {
CHARGE_STATUS_UNSPECIFIED = 0;
CHARGE_STATUS_DISCHARGE = 1;
CHARGE_STATUS_CHARGE = 2;
CHARGE_STATUS_CHARGE_ERROR = 3;
}
ChargeStatus status = 1; // Battery charge status.
float level = 2; // Battery level (0..1).
}

// Surface Unit version information.
//
// This message is published by the Surface Unit, and re-published by
// the drone over the communication protocol.
message SurfaceUnitVersionInfo {
string version = 1; // Surface Unit firmware version (x.y.z).
}
6 changes: 6 additions & 0 deletions protobuf_definitions/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,9 @@ message MultibeamDiscoveryTel {
message CPUInfoTel {
CPUInfo cpu_info = 1; // CPU information.
}

// Surface Unit telemetry message.
message SurfaceUnitTel {
SurfaceUnitBatteryInfo battery_info = 1; // Battery information.
SurfaceUnitVersionInfo version_info = 2; // Version information.
}