From caffa39ca3c7f722bd6d8e50e8787a9d528cf562 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 --- protos/telemetry/telemetry.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protos/telemetry/telemetry.proto b/protos/telemetry/telemetry.proto index 4d497c783..5ce5b3d41 100644 --- a/protos/telemetry/telemetry.proto +++ b/protos/telemetry/telemetry.proto @@ -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 } /*