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
12 changes: 12 additions & 0 deletions protobuf_definitions/message_formats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,17 @@ enum PressureSensorType {
PRESSURE_SENSOR_TYPE_MS5637_02BA03 = 4; // The internal pressure sensor using the MS5637 02BA03 pressure sensor.
}

// How the drone is powered.
//
// Lets clients determine the power configuration (e.g. parallel batteries on the
// X7) directly from DroneInfo, without waiting for telemetry. May be extended in
// the future, e.g. with topside power.
enum PowerSource {
POWER_SOURCE_UNSPECIFIED = 0; // Power source unknown / not determined.
POWER_SOURCE_SINGLE_BATTERY = 1; // A single battery.
POWER_SOURCE_PARALLEL_BATTERIES = 2; // Two batteries running in parallel (e.g. X7).
}

// Information about the drone.
//
// Information about a loaded computer vision model.
Expand Down Expand Up @@ -816,6 +827,7 @@ message DroneInfo {
GuestPortInfo gp = 9; // Guest port information.
PressureSensorType depth_sensor = 11; // Type of depth sensor that is connected to the drone.
repeated CvModelInfo cv_models = 12; // List of loaded computer vision models.
PowerSource power_source = 13; // How the drone is powered.
}

// Known error states for the drone.
Expand Down
10 changes: 10 additions & 0 deletions protobuf_definitions/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,24 @@ message TimeLapseStateTel {
}

// Receive essential information about the battery status.
//
// On models with two batteries running in parallel (e.g. the X7), second_battery
// holds the essential information for the second battery. When only a single
// battery is used, second_battery is undefined (not set).
message BatteryTel {
Battery battery = 1; // Essential battery information.
Battery second_battery = 2; // Second battery, when present. Not set if only one battery is used.
}

// Receive detailed information about a battery using the
// BQ40Z50 battery management system.
//
// On models with two batteries running in parallel (e.g. the X7), second_battery
// holds the detailed information for the second battery. When only a single
// battery is used, second_battery is undefined (not set).
message BatteryBQ40Z50Tel {
BatteryBQ40Z50 battery = 1; // Detailed battery information.
BatteryBQ40Z50 second_battery = 2; // Second battery, when present. Not set if only one battery is used.
}

// Receive the dive time of the drone.
Expand Down
Loading