Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
BMS.h
Go to the documentation of this file.
1#ifndef RENNSSELAERMOTORSPORT_BMS_H
2#define RENNSSELAERMOTORSPORT_BMS_H
3
4#include <stdint.h>
5
6#include "../ExternalSystem.h"
7#include "../Inc/Systems/Comms/Can/DBCParser.h"
8
9typedef enum {
14
15typedef struct {
17
18 // Bms Data
30} Bms;
31
39void initBms(Bms* bms, int hz, const char* dbcFn);
40
47//BmsData transferFunctionBms(float* rawdata);
48
54void updateBms(void* bms);
55
63void updateBmsTest(void* bms, const char* canDataFn);
64
65#endif // RENNSSELAERMOTORSPORT_BMS_H
void updateBmsTest(void *bms, const char *canDataFn)
Updates the BMS data.
Definition: BMS.c:96
BmsChargeStatus
Definition: BMS.h:9
@ CHARGING
Definition: BMS.h:11
@ DISCHARGING
Definition: BMS.h:10
@ IDLE
Definition: BMS.h:12
void updateBms(void *bms)
Transfers raw BMS data to a BmsData structure.
Definition: BMS.c:83
void initBms(Bms *bms, int hz, const char *dbcFn)
Initializes the BMS with the given frequency.
Definition: BMS.c:7
Definition: BMS.h:15
float cellVoltageMin
Definition: BMS.h:22
float stateOfCharge
Definition: BMS.h:21
float cellVoltageMax
Definition: BMS.h:23
float cellTemperatureMax
Definition: BMS.h:25
float packVoltage
Definition: BMS.h:19
ExternalSystem extSystem
Definition: BMS.h:16
BmsChargeStatus chargeStatus
Definition: BMS.h:29
float totalPackCapacity
Definition: BMS.h:26
float cellTemperatureMin
Definition: BMS.h:24
float remainingPackCapacity
Definition: BMS.h:27
float packHealth
Definition: BMS.h:28
float packCurrent
Definition: BMS.h:20