firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
Fault.c File Reference
#include "Fault.h"
Include dependency graph for Fault.c:

Functions

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.

Detailed Description

Last Edited: David Lacayo

Function Documentation

◆ FAULT_check()

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.

Parameters
bmsDatais a 2D array of 144 cellData, containing voltage, temperature and index
bmsStatusis 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
Here is the caller graph for this function:

◆ init_BMS_info()

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.

Parameters
bms_structis the struct that will be filled with critical values
Returns
None
Here is the caller graph for this function: