PX4 Firmware
PX4 Autopilot Software http://px4.io
battery_status_s Struct Reference

#include <battery_status.h>

Collaboration diagram for battery_status_s:

Public Attributes

uint64_t timestamp
 
float voltage_v
 
float voltage_filtered_v
 
float current_a
 
float current_filtered_a
 
float average_current_a
 
float discharged_mah
 
float remaining
 
float scale
 
float temperature
 
int32_t cell_count
 
float voltage_cell_v [4]
 
float max_cell_voltage_delta
 
uint16_t capacity
 
uint16_t cycle_count
 
uint16_t run_time_to_empty
 
uint16_t average_time_to_empty
 
uint16_t serial_number
 
bool connected
 
bool system_source
 
uint8_t priority
 
bool is_powering_off
 
uint8_t warning
 
uint8_t _padding0 [5]
 

Detailed Description

Definition at line 56 of file battery_status.h.

Member Data Documentation

◆ _padding0

uint8_t battery_status_s::_padding0[5]

Definition at line 81 of file battery_status.h.

◆ average_current_a

float battery_status_s::average_current_a

Definition at line 63 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ average_time_to_empty

uint16_t battery_status_s::average_time_to_empty

Definition at line 74 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ capacity

uint16_t battery_status_s::capacity

Definition at line 71 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ cell_count

int32_t battery_status_s::cell_count

Definition at line 68 of file battery_status.h.

Referenced by Battery::reset(), and BATT_SMBUS::Run().

◆ connected

◆ current_a

float battery_status_s::current_a

◆ current_filtered_a

float battery_status_s::current_filtered_a

◆ cycle_count

uint16_t battery_status_s::cycle_count

Definition at line 72 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ discharged_mah

float battery_status_s::discharged_mah

◆ is_powering_off

bool battery_status_s::is_powering_off

Definition at line 79 of file battery_status.h.

◆ max_cell_voltage_delta

float battery_status_s::max_cell_voltage_delta

Definition at line 70 of file battery_status.h.

Referenced by BATT_SMBUS::get_cell_voltages().

◆ priority

uint8_t battery_status_s::priority

Definition at line 78 of file battery_status.h.

Referenced by Battery::updateBatteryStatus().

◆ remaining

◆ run_time_to_empty

uint16_t battery_status_s::run_time_to_empty

Definition at line 73 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ scale

float battery_status_s::scale

◆ serial_number

uint16_t battery_status_s::serial_number

Definition at line 75 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ system_source

bool battery_status_s::system_source

Definition at line 77 of file battery_status.h.

Referenced by Battery::updateBatteryStatus().

◆ temperature

float battery_status_s::temperature

Definition at line 67 of file battery_status.h.

Referenced by BATT_SMBUS::Run(), and Battery::updateBatteryStatus().

◆ timestamp

◆ voltage_cell_v

float battery_status_s::voltage_cell_v[4]

Definition at line 69 of file battery_status.h.

Referenced by BATT_SMBUS::Run().

◆ voltage_filtered_v

float battery_status_s::voltage_filtered_v

◆ voltage_v

float battery_status_s::voltage_v

◆ warning


The documentation for this struct was generated from the following file: