mavsdk::Telemetry::Battery Struct Reference

#include: telemetry.h


Battery type.

Data Fields

uint32_t id {0} - Battery ID, for systems with multiple batteries.

float temperature_degc {float(NAN)} - Temperature of the battery in degrees Celsius. NAN for unknown temperature.

float voltage_v {float(NAN)} - Voltage in volts.

float current_battery_a {float(NAN)} - Battery current in Amps, NAN if autopilot does not measure the current.

float capacity_consumed_ah { float(NAN)} - Consumed charge in Amp hours, NAN if autopilot does not provide consumption estimate.

float remaining_percent { float(NAN)} - Estimated battery remaining (range: 0 to 100)

Field Documentation

id

uint32_t mavsdk::Telemetry::Battery::id {0}

Battery ID, for systems with multiple batteries.

temperature_degc

float mavsdk::Telemetry::Battery::temperature_degc {float(NAN)}

Temperature of the battery in degrees Celsius. NAN for unknown temperature.

voltage_v

float mavsdk::Telemetry::Battery::voltage_v {float(NAN)}

Voltage in volts.

current_battery_a

float mavsdk::Telemetry::Battery::current_battery_a {float(NAN)}

Battery current in Amps, NAN if autopilot does not measure the current.

capacity_consumed_ah

float mavsdk::Telemetry::Battery::capacity_consumed_ah { float(NAN)}

Consumed charge in Amp hours, NAN if autopilot does not provide consumption estimate.

remaining_percent

float mavsdk::Telemetry::Battery::remaining_percent { float(NAN)}

Estimated battery remaining (range: 0 to 100)

© MAVSDK Development Team 2017-2023. License: CC BY 4.0            Updated: 2023-12-27 03:58:12

results matching ""

    No results matching ""