Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Systems/External/BMS.h"
#include "../../../Inc/Systems/PrintHelpers.h"
#include <stdio.h>
#include "../../../Inc/Systems/Comms/Can/Can.h"
Go to the source code of this file.
Functions | |
void | initBms (Bms *bms, int hz, const char *dbcFn) |
Initializes the BMS with the given frequency. More... | |
void | assignBmsValue (Bms *bms, int id, float value, const char *name) |
int | bmsTransferFunction (Bms *bms, CAN_Message *canData) |
void | updateBms (void *bms) |
Transfers raw BMS data to a BmsData structure. More... | |
void | updateBmsTest (void *bms, const char *canDataFn) |
Updates the BMS data. More... | |
void assignBmsValue | ( | Bms * | bms, |
int | id, | ||
float | value, | ||
const char * | name | ||
) |
Definition at line 26 of file BMS.c.
int bmsTransferFunction | ( | Bms * | bms, |
CAN_Message * | canData | ||
) |
Definition at line 63 of file BMS.c.
void initBms | ( | Bms * | bms, |
int | hz, | ||
const char * | dbcFn | ||
) |
Initializes the BMS with the given frequency.
bms | Pointer to the Bms structure to initialize. |
hz | The frequency in Hertz at which the BMS operates. |
dbcFn | The filename of the dbc file to use to interpret the can data. |
Definition at line 7 of file BMS.c.
void updateBms | ( | void * | bms | ) |
Transfers raw BMS data to a BmsData structure.
rawData | Pointer to the array of raw data. |
Updates the BMS data.
bms | Pointer to the Bms structure to update. |
Definition at line 83 of file BMS.c.
void updateBmsTest | ( | void * | bms, |
const char * | canDataFn | ||
) |
Updates the BMS data.
bms | Pointer to the Bms structure to update. |
canDataFn | Name of file containing can data. |
Definition at line 96 of file BMS.c.