Go to the source code of this file.
|
void | init_BMS_info (BMS_critical_info_t *bms_struct) |
| This method initializes the BMS info struct, which contains critical info regarding maxs and mins for readings in our battery pack.
|
bool | FAULT_check (BMS_critical_info_t *bms_struct, uint8_t bmsStatus[6]) |
| This method checks for valid data as well as cell connection, OT, UT, OV, & UT faults.
|
◆ INVALID_VOLTAGE_LOWER_THRESHOLD
#define INVALID_VOLTAGE_LOWER_THRESHOLD 25000 |
◆ INVALID_VOLTAGE_UPPER_THRESHOLD
#define INVALID_VOLTAGE_UPPER_THRESHOLD 45000 |
◆ FAULT_check()
This method checks for valid data as well as cell connection, OT, UT, OV, & UT faults.
- Parameters
-
bmsData | is a 2D array of 144 cellData, containing voltage, temperature and index |
bmsStatus | is an array that keeps track of BMS Fault information that will be returned over CAN |
- Returns
- true if there is a BMS fault, and false if the system has returned no faults
◆ init_BMS_info()
This method initializes the BMS info struct, which contains critical info regarding maxs and mins for readings in our battery pack.
- Parameters
-
bms_struct | is the struct that will be filled with critical values |
- Returns
- None