This commit is contained in:
Hamza
2024-07-19 21:51:19 +03:00
parent e33579318e
commit 7dd742af22
8 changed files with 36 additions and 27 deletions

View File

@ -1,6 +1,9 @@
#ifndef INC_SOC_ESTIMATION_H
#define INC_SOC_ESTIMATION_H
#include "state_machine.h"
#include "stm32f3xx_hal.h"
#include <stddef.h>
#include <stdint.h>
extern float current_soc;

View File

@ -85,7 +85,9 @@ State sm_update_error();
void sm_set_relay_positions(State state);
void sm_set_relay(Relay relay, bool closed);
void sm_check_battery_temperature(int8_t* id, int16_t* temp);
void sm_check_battery_temperature(uint8_t* id, uint16_t* temp);
void sm_check_battery_voltage(uint8_t* id, uint16_t* voltage);
int16_t sm_return_cell_temperature(int id);
int16_t sm_return_cell_voltage(int id);