1#include "../../../Inc/Systems/External/BMS.h"
2#include "../../../Inc/Systems/PrintHelpers.h"
5#include "../../../Inc/Systems/Comms/Can/Can.h"
8 if (bms == NULL)
return;
30 if (strcmp(name,
"Pack_Current") == 0) {
32 }
else if (strcmp(name,
"Pack_Inst_Voltage") == 0) {
34 }
else if (strcmp(name,
"Pack_SOC") == 0) {
36 }
else if (strcmp(name,
"Relay_State") == 0) {
38 }
else if (strcmp(name,
"CRC_Checksum") == 0) {
45 if (strcmp(name,
"Pack_DCL") == 0) {
47 }
else if (strcmp(name,
"Pack_CCL") == 0) {
49 }
else if (strcmp(name,
"High_Temperature") == 0) {
51 }
else if (strcmp(name,
"Low_Temperature") == 0) {
53 }
else if (strcmp(name,
"CRC_Checksum") == 0) {
85 printf(
"BMS Update Not implemented\n");
void updateBmsTest(void *bms, const char *canDataFn)
Updates the BMS data.
int bmsTransferFunction(Bms *bms, CAN_Message *canData)
void updateBms(void *bms)
Transfers raw BMS data to a BmsData structure.
void initBms(Bms *bms, int hz, const char *dbcFn)
Initializes the BMS with the given frequency.
void assignBmsValue(Bms *bms, int id, float value, const char *name)
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type)
BmsChargeStatus chargeStatus
float remainingPackCapacity
void(* update)(void *self)