2018-08-06 21:30:05 -03:00
|
|
|
uint64 timestamp # time since system start (microseconds)
|
2015-05-25 14:23:43 -03:00
|
|
|
float32 voltage_v # Battery voltage in volts, 0 if unknown
|
|
|
|
float32 voltage_filtered_v # Battery voltage in volts, filtered, 0 if unknown
|
|
|
|
float32 current_a # Battery current in amperes, -1 if unknown
|
2016-05-10 05:17:48 -03:00
|
|
|
float32 current_filtered_a # Battery current in amperes, filtered, 0 if unknown
|
2018-03-06 05:42:20 -04:00
|
|
|
float32 average_current_a # Battery current average in amperes, -1 if unknown
|
2015-05-25 14:23:43 -03:00
|
|
|
float32 discharged_mah # Discharged amount in mAh, -1 if unknown
|
2016-02-24 14:08:56 -04:00
|
|
|
float32 remaining # From 1 to 0, -1 if unknown
|
2016-10-10 21:31:14 -03:00
|
|
|
float32 scale # Power scaling factor, >= 1, or -1 if unknown
|
2019-08-02 11:09:03 -03:00
|
|
|
float32 temperature # temperature of the battery. NaN if unknown
|
2016-02-24 14:08:56 -04:00
|
|
|
int32 cell_count # Number of cells
|
2017-06-29 17:45:52 -03:00
|
|
|
bool connected # Whether or not a battery is connected, based on a voltage threshold
|
|
|
|
bool system_source # Whether or not a this battery is the active power source for VDD_5V_IN
|
|
|
|
uint8 priority # Zerro based priority is the connection on the Power Controller V1..Vn AKA BrickN-1
|
2018-03-06 05:42:20 -04:00
|
|
|
uint16 capacity # actual capacity of the battery
|
|
|
|
uint16 cycle_count # number of discharge cycles the battery has experienced
|
|
|
|
uint16 run_time_to_empty # predicted remaining battery capacity based on the present rate of discharge in min
|
|
|
|
uint16 average_time_to_empty # predicted remaining battery capacity based on the average rate of discharge in min
|
|
|
|
uint16 serial_number # serial number of the battery pack
|
|
|
|
|
2018-10-15 13:00:27 -03:00
|
|
|
float32[4] voltage_cell_v # Battery individual cell voltages
|
|
|
|
float32 max_cell_voltage_delta # Max difference between individual cell voltages
|
2017-06-29 17:45:52 -03:00
|
|
|
|
2018-02-07 21:57:08 -04:00
|
|
|
bool is_powering_off # Power off event imminent indication, false if unknown
|
2016-02-24 14:08:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
uint8 BATTERY_WARNING_NONE = 0 # no battery low voltage warning active
|
|
|
|
uint8 BATTERY_WARNING_LOW = 1 # warning of low voltage
|
2017-02-22 17:01:21 -04:00
|
|
|
uint8 BATTERY_WARNING_CRITICAL = 2 # critical voltage, return / abort immediately
|
|
|
|
uint8 BATTERY_WARNING_EMERGENCY = 3 # immediate landing required
|
|
|
|
uint8 BATTERY_WARNING_FAILED = 4 # the battery has failed completely
|
2016-02-24 14:08:56 -04:00
|
|
|
|
|
|
|
uint8 warning # current battery warning
|