7#ifndef PACK_CALCULATIONS
8#define PACK_CALCULATIONS
23 bool fullDischarge[12][12], uint8_t balanceCounter,
27 uint16_t cell_discharge_threshold,
28 uint8_t num_cells_discharge_per_secondary);
void setCriticalVoltages(BMS_critical_info_t *bms, CellData const bmsData[144])
This method calculates the maximum and minimum cell voltages in the pack, and sets those values w/ th...
Definition PackCalculations.c:17
void balance(BMSConfigStructTypedef const *cfg, BMS_critical_info_t *bms, CellData bmsData[144], bool cellDischarge[12][12], bool fullDischarge[12][12], uint8_t balanceCounter, uint8_t *chargeRate)
This function is still a work in progress.
Definition PackCalculations.c:100
uint8_t balance_counter
Definition main.c:115
void setCriticalTemps(BMS_critical_info_t *bms, CellData const bmsData[144])
This method calculates the maximum and minimum cell temps in the pack, and sets those values w/ the a...
Definition PackCalculations.c:74
void thresholdBalance(BMSConfigStructTypedef *cfg, BMS_critical_info_t *bms, CellData bmsData[144], bool cell_discharge[12][12], uint16_t cell_discharge_threshold, uint8_t num_cells_discharge_per_secondary)
WIP/untested. Should be run while accumulator is not charging, discharges any cells above the thresho...
Definition PackCalculations.c:148
CellData bmsData[144]
Definition main.c:123
Definition BMSconfig.h:20
Definition BMSconfig.h:71