Skip to content

Commit 7dc2e1a

Browse files
authored
Merge pull request #216 from BluEye-Robotics/surface-unit-messages
Add message definition for Surface Unit
2 parents 35603a2 + eca1340 commit 7dc2e1a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

protobuf_definitions/message_formats.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,3 +1223,26 @@ message CPUInfo {
12231223
float guestport_queue_load = 4 ; // Guestport queue load (0..1).
12241224
float comm_queue_load = 5; // Communication queue load (0..1).
12251225
}
1226+
1227+
// Surface Unit battery information.
1228+
//
1229+
// This message is published by the Surface Unit, and re-published by
1230+
// the drone over the communication protocol.
1231+
message SurfaceUnitBatteryInfo {
1232+
enum ChargeStatus {
1233+
CHARGE_STATUS_UNSPECIFIED = 0;
1234+
CHARGE_STATUS_DISCHARGE = 1;
1235+
CHARGE_STATUS_CHARGE = 2;
1236+
CHARGE_STATUS_CHARGE_ERROR = 3;
1237+
}
1238+
ChargeStatus status = 1; // Battery charge status.
1239+
float level = 2; // Battery level (0..1).
1240+
}
1241+
1242+
// Surface Unit version information.
1243+
//
1244+
// This message is published by the Surface Unit, and re-published by
1245+
// the drone over the communication protocol.
1246+
message SurfaceUnitVersionInfo {
1247+
string version = 1; // Surface Unit firmware version (x.y.z).
1248+
}

protobuf_definitions/telemetry.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,9 @@ message MultibeamDiscoveryTel {
287287
message CPUInfoTel {
288288
CPUInfo cpu_info = 1; // CPU information.
289289
}
290+
291+
// Surface Unit telemetry message.
292+
message SurfaceUnitTel {
293+
SurfaceUnitBatteryInfo battery_info = 1; // Battery information.
294+
SurfaceUnitVersionInfo version_info = 2; // Version information.
295+
}

0 commit comments

Comments
 (0)