PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <battery_status.h>
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] |
Definition at line 56 of file battery_status.h.
uint8_t battery_status_s::_padding0[5] |
Definition at line 81 of file battery_status.h.
float battery_status_s::average_current_a |
Definition at line 63 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
uint16_t battery_status_s::average_time_to_empty |
Definition at line 74 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
uint16_t battery_status_s::capacity |
Definition at line 71 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
int32_t battery_status_s::cell_count |
Definition at line 68 of file battery_status.h.
Referenced by Battery::reset(), and BATT_SMBUS::Run().
bool battery_status_s::connected |
Definition at line 76 of file battery_status.h.
Referenced by do_esc_calibration(), Battery::reset(), BATT_SMBUS::Run(), MavlinkStreamSysStatus::send(), MavlinkStreamHighLatency2::update_battery_status(), Battery::updateBatteryStatus(), and MavlinkStreamHighLatency2::write_battery_status().
float battery_status_s::current_a |
Definition at line 61 of file battery_status.h.
Referenced by frsky_send_frame1(), Battery::reset(), px4::bst::BST::Run(), BATT_SMBUS::Run(), sPort_send_CUR(), and Battery::updateBatteryStatus().
float battery_status_s::current_filtered_a |
Definition at line 62 of file battery_status.h.
Referenced by BATT_SMBUS::Run(), MavlinkStreamSysStatus::send(), CRSFTelemetry::send_battery(), and Battery::updateBatteryStatus().
uint16_t battery_status_s::cycle_count |
Definition at line 72 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
float battery_status_s::discharged_mah |
Definition at line 64 of file battery_status.h.
Referenced by px4::bst::BST::Run(), BATT_SMBUS::Run(), CRSFTelemetry::send_battery(), and Battery::updateBatteryStatus().
bool battery_status_s::is_powering_off |
Definition at line 79 of file battery_status.h.
float battery_status_s::max_cell_voltage_delta |
Definition at line 70 of file battery_status.h.
Referenced by BATT_SMBUS::get_cell_voltages().
uint8_t battery_status_s::priority |
Definition at line 78 of file battery_status.h.
Referenced by Battery::updateBatteryStatus().
float battery_status_s::remaining |
Definition at line 65 of file battery_status.h.
Referenced by frsky_send_frame2(), Battery::reset(), BATT_SMBUS::Run(), MavlinkStreamSysStatus::send(), CRSFTelemetry::send_battery(), sPort_send_FUEL(), MavlinkStreamHighLatency2::update_battery_status(), and Battery::updateBatteryStatus().
uint16_t battery_status_s::run_time_to_empty |
Definition at line 73 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
float battery_status_s::scale |
Definition at line 66 of file battery_status.h.
Referenced by Battery::reset(), MulticopterRateControl::Run(), and Battery::updateBatteryStatus().
uint16_t battery_status_s::serial_number |
Definition at line 75 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
bool battery_status_s::system_source |
Definition at line 77 of file battery_status.h.
Referenced by Battery::updateBatteryStatus().
float battery_status_s::temperature |
Definition at line 67 of file battery_status.h.
Referenced by BATT_SMBUS::Run(), and Battery::updateBatteryStatus().
uint64_t battery_status_s::timestamp |
Definition at line 58 of file battery_status.h.
Referenced by UavcanBatteryBridge::battery_sub_cb(), do_esc_calibration(), MavlinkReceiver::handle_message_hil_sensor(), MavlinkReceiver::handle_message_hil_state_quaternion(), BATT_SMBUS::Run(), and Battery::updateBatteryStatus().
float battery_status_s::voltage_cell_v[4] |
Definition at line 69 of file battery_status.h.
Referenced by BATT_SMBUS::Run().
float battery_status_s::voltage_filtered_v |
Definition at line 60 of file battery_status.h.
Referenced by BATT_SMBUS::Run(), MavlinkStreamSysStatus::send(), CRSFTelemetry::send_battery(), and Battery::updateBatteryStatus().
float battery_status_s::voltage_v |
Definition at line 59 of file battery_status.h.
Referenced by build_eam_response(), frsky_send_frame1(), px4::bst::BST::Run(), BATT_SMBUS::Run(), sPort_send_BATV(), and Battery::updateBatteryStatus().
uint8_t battery_status_s::warning |
Definition at line 80 of file battery_status.h.
Referenced by land_detector::MulticopterLandDetector::_get_max_altitude(), Battery::reset(), BATT_SMBUS::Run(), Battery::updateBatteryStatus(), and MavlinkStreamHighLatency2::write_battery_status().