![]() |
Midnight Sun Firmware
|
Per-fault detail snapshot for the BPS fault code. More...
#include <global_enums.h>
Public Attributes | |
| uint8_t | cell_index |
| uint8_t | reserved0 |
| uint16_t | cell_voltage |
| uint32_t | reserved1 |
| uint8_t | max_cell_index |
| uint8_t | min_cell_index |
| uint16_t | max_cell_voltage |
| uint16_t | min_cell_voltage |
| uint16_t | reserved |
| int16_t | temperature_c |
| float | current_a |
| uint32_t | reserved |
Per-fault detail snapshot for the BPS fault code.
8-byte payload packed into the 64-bit bps_fault_info CAN signal and the rear controller persist record. Which union view is valid is determined by the active bit(s) in the 32-bit fault code - there is no tag inside the payload itself.
| uint8_t cell_index |
1-based faulting cell, 0 if N/A
1-based faulting cell/thermistor, 0 if N/A
| uint16_t cell_voltage |
Faulting cell voltage [100uV]
| float current_a |
Pack current at fault [A], signed (charging negative)
| uint8_t max_cell_index |
1-based highest cell
| uint16_t max_cell_voltage |
Highest cell voltage [100uV]
| uint8_t min_cell_index |
1-based lowest cell
| uint16_t min_cell_voltage |
Lowest cell voltage [100uV]
| int16_t temperature_c |
Faulting temperature [C]