19 lines
377 B
C
19 lines
377 B
C
#ifndef INC_SOC_ESTIMATION_H
|
|
#define INC_SOC_ESTIMATION_H
|
|
|
|
#include <stdint.h>
|
|
|
|
extern uint8_t current_soc;
|
|
|
|
|
|
#define N_MODELPARAMETERS 11
|
|
#define BATTERYCAPACITYAs (20000.0*3600) //TODO Check if value is correct Cap in Ah * 3600 (Convert to As)
|
|
|
|
|
|
void soc_init();
|
|
void soc_update(int32_t shunt_current);
|
|
float soe_update();
|
|
void soap_update();
|
|
|
|
#endif // INC_SOC_ESTIMATION_H
|