Basic SoC estimation

This commit is contained in:
2023-06-25 15:21:48 +02:00
parent 2eb7109416
commit 5dba504e10
3 changed files with 90 additions and 5 deletions

View File

@ -3,9 +3,16 @@
#include <stdint.h>
extern uint8_t current_soc;
extern float current_soc;
void soc_init();
void soc_update();
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);
#endif // INC_SOC_ESTIMATION_H