2023-03-12 21:06:23 +01:00
|
|
|
#ifndef INC_SOC_ESTIMATION_H
|
|
|
|
#define INC_SOC_ESTIMATION_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-06-25 15:21:48 +02:00
|
|
|
extern float current_soc;
|
2023-03-12 21:06:23 +01:00
|
|
|
|
|
|
|
void soc_init();
|
2023-06-25 15:28:53 +02:00
|
|
|
void soc_update();
|
2023-03-12 21:06:23 +01:00
|
|
|
|
2023-06-25 15:21:48 +02:00
|
|
|
typedef struct {
|
|
|
|
uint16_t ocv;
|
|
|
|
float soc;
|
|
|
|
} ocv_soc_pair_t;
|
|
|
|
extern ocv_soc_pair_t OCV_SOC_PAIRS[];
|
|
|
|
float soc_for_ocv(uint16_t ocv);
|
|
|
|
|
2023-03-12 21:06:23 +01:00
|
|
|
#endif // INC_SOC_ESTIMATION_H
|