Skip to content

Commit

Permalink
telemetry: add battery proto status message for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Katawann committed Sep 13, 2022
1 parent 68ac98d commit 26388ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protos/telemetry/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,11 @@ enum FixType {
// Battery type.
message Battery {
uint32 id = 3 [(mavsdk.options.default_value)="0"]; // Battery ID, for systems with multiple batteries
float temperature_cdegC = 7 [(mavsdk.options.default_value)="NaN"]; // Temperature of the battery. INT16_MAX for unknown temperature
float voltage_v = 1 [(mavsdk.options.default_value)="NaN"]; // Voltage in volts
float current_battery_cA = 4 [(mavsdk.options.default_value)="NaN"]; // Battery current, -1: autopilot does not measure the current
float current_consumed_mAh = 5 [(mavsdk.options.default_value)="NaN"]; // Consumed charge, -1: autopilot does not provide consumption estimate
float energy_consumed_hJ = 6 [(mavsdk.options.default_value)="NaN"]; // Consumed energy, -1: autopilot does not provide energy consumption estimate
float remaining_percent = 2 [(mavsdk.options.default_value)="NaN"]; // Estimated battery remaining (range: 0.0 to 1.0)
}

Expand Down

0 comments on commit 26388ef

Please sign in to comment.