Skip to content

Commit 621e0e6

Browse files
Katawannjulianoes
andcommitted
telemetry: add battery proto status message for v1
Co-Authored-By: Julian Oes <julian@oes.ch>
1 parent ee13b7b commit 621e0e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

protos/telemetry/telemetry.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,12 @@ enum FixType {
593593

594594
// Battery type.
595595
message Battery {
596-
uint32 id = 3 [(mavsdk.options.default_value)="0"]; // Battery ID, for systems with multiple batteries
597-
float voltage_v = 1 [(mavsdk.options.default_value)="NaN"]; // Voltage in volts
598-
float remaining_percent = 2 [(mavsdk.options.default_value)="NaN"]; // Estimated battery remaining (range: 0.0 to 1.0)
596+
uint32 id = 1 [(mavsdk.options.default_value)="0"]; // Battery ID, for systems with multiple batteries
597+
float temperature_degc = 2 [(mavsdk.options.default_value)="NaN"]; // Temperature of the battery in degrees Celsius. NAN for unknown temperature
598+
float voltage_v = 3 [(mavsdk.options.default_value)="NaN"]; // Voltage in volts
599+
float current_battery_a = 4 [(mavsdk.options.default_value)="NaN"]; // Battery current in Amps, NAN if autopilot does not measure the current
600+
float capacity_consumed_ah = 5 [(mavsdk.options.default_value)="NaN"]; // Consumed charge in Amp hours, NAN if autopilot does not provide consumption estimate
601+
float remaining_percent = 6 [(mavsdk.options.default_value)="NaN"]; // Estimated battery remaining (range: 0 to 100)
599602
}
600603

601604
/*

0 commit comments

Comments
 (0)