UAVCANv0: add CUAV smart battery support

This commit is contained in:
CUAVmengxiao
2021-04-12 09:27:31 +08:00
committed by GitHub
parent 96d0755afd
commit 45b9e18195
7 changed files with 300 additions and 3 deletions

View File

@@ -25,9 +25,9 @@ uint16 manufacture_date # manufacture date, part of serial number of the batter
uint16 state_of_health # state of health. FullChargeCapacity/DesignCapacity.
uint16 max_error # max error, expected margin of error in % in the state-of-charge calculation with a range of 1 to 100%
uint8 id # ID number of a battery. Should be unique and consistent for the lifetime of a vehicle. 1-indexed.
uint16 interface_error # SMBUS interface error counter
uint16 interface_error # interface error counter
float32[10] voltage_cell_v # Battery individual cell voltages
float32[14] voltage_cell_v # Battery individual cell voltages
float32 max_cell_voltage_delta # Max difference between individual cell voltages
bool is_powering_off # Power off event imminent indication, false if unknown
@@ -43,3 +43,11 @@ uint8 warning # current battery warning
uint8 MAX_INSTANCES = 4
float32 average_power # The average power of the current discharge
float32 available_energy # The predicted charge or energy remaining in the battery
float32 remaining_capacity # The compensated battery capacity remaining
float32 design_capacity # The design capacity of the battery
uint16 average_time_to_full # The predicted remaining time until the battery reaches full charge, in minutes
uint16 over_discharge_count # Number of battery overdischarge
float32 nominal_voltage # Nominal voltage of the battery pack