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 authored and Quentin Collet committed Sep 14, 2022
1 parent 68ac98d commit caffa39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion protos/telemetry/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,11 @@ enum FixType {
message Battery {
uint32 id = 3 [(mavsdk.options.default_value)="0"]; // Battery ID, for systems with multiple batteries
float voltage_v = 1 [(mavsdk.options.default_value)="NaN"]; // Voltage in volts
float remaining_percent = 2 [(mavsdk.options.default_value)="NaN"]; // Estimated battery remaining (range: 0.0 to 1.0)
float remaining_percent = 2 [(mavsdk.options.default_value)="NaN"]; // Estimated battery remaining (range: 0 to 100)
float current_battery_a = 4 [(mavsdk.options.default_value)="NaN"]; // Battery current, NAN if autopilot does not measure the current
float current_consumed_ah = 5 [(mavsdk.options.default_value)="NaN"]; // Consumed charge, NAN if autopilot does not provide consumption estimate
float energy_consumed_j = 6 [(mavsdk.options.default_value)="NaN"]; // Consumed energy, NAN if autopilot does not provide energy consumption estimate
float temperature_degc = 7 [(mavsdk.options.default_value)="NaN"]; // Temperature of the battery. NAN for unknown temperature
}

/*
Expand Down

0 comments on commit caffa39

Please sign in to comment.