Skip to content

Commit 57f1bc4

Browse files
committed
#215 Add message definition for Surface Unit
1 parent 35603a2 commit 57f1bc4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-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 SurfaceUnitBattery {
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 required_blunux_version = 1; // Surface Unit firmware version (x.y.z).
1248+
}

0 commit comments

Comments
 (0)