From 3ea04cd2d8f3054193d162fa43ceb4929fc3ee34 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protos/telemetry/telemetry.proto b/protos/telemetry/telemetry.proto index 4d497c783..f182929c8 100644 --- a/protos/telemetry/telemetry.proto +++ b/protos/telemetry/telemetry.proto @@ -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_degc = 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_ma = 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) }