From 85ce2041519b6fad456cd2b4c416aa20f18c75fc Mon Sep 17 00:00:00 2001 From: Quentin Collet Date: Tue, 13 Sep 2022 10:45:47 +0200 Subject: [PATCH] telemetry: add battery proto status message for v1 Co-Authored-By: Julian Oes --- protos/telemetry/telemetry.proto | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/protos/telemetry/telemetry.proto b/protos/telemetry/telemetry.proto index e3b4ca0af..6dc1bff61 100644 --- a/protos/telemetry/telemetry.proto +++ b/protos/telemetry/telemetry.proto @@ -593,9 +593,12 @@ enum FixType { // Battery type. 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) + uint32 id = 1 [(mavsdk.options.default_value)="0"]; // Battery ID, for systems with multiple batteries + float temperature_degc = 2 [(mavsdk.options.default_value)="NaN"]; // Temperature of the battery in degrees Celsius. NAN for unknown temperature + float voltage_v = 3 [(mavsdk.options.default_value)="NaN"]; // Voltage in volts + float current_battery_a = 4 [(mavsdk.options.default_value)="NaN"]; // Battery current in Amps, NAN if autopilot does not measure the current + float capacity_consumed_ah = 5 [(mavsdk.options.default_value)="NaN"]; // Consumed charge in Amp hours, NAN if autopilot does not provide consumption estimate + float remaining_percent = 6 [(mavsdk.options.default_value)="NaN"]; // Estimated battery remaining (range: 0 to 100) } /*