Implementation of SoC Prediction
untested. Maybe revert to Jaspers Version
This commit is contained in:
@ -28,4 +28,6 @@ void shunt_check();
|
||||
|
||||
void shunt_handle_can_msg(uint16_t id, const uint8_t *data);
|
||||
|
||||
int32_t shunt_getcurrent();
|
||||
|
||||
#endif // INC_SHUNT_MONITORING_H
|
||||
|
||||
@ -49,5 +49,6 @@ void slaves_check();
|
||||
void slaves_handle_panic(const uint8_t *data);
|
||||
void slaves_handle_status(const uint8_t *data);
|
||||
void slaves_handle_log(const uint8_t *data);
|
||||
uint16_t slaves_get_minimum_voltage();
|
||||
|
||||
#endif // INC_SLAVE_MONITORING_H
|
||||
|
||||
@ -5,7 +5,14 @@
|
||||
|
||||
extern uint8_t current_soc;
|
||||
|
||||
|
||||
#define N_MODELPARAMETERS 11
|
||||
#define BATTERYCAPACITYAs (21000.0*3600) //TODO Check if value is correct Cap in Ah * 3600 (Convert to As)
|
||||
|
||||
|
||||
void soc_init();
|
||||
void soc_update();
|
||||
void soc_update(int32_t shunt_current);
|
||||
void soe_update();
|
||||
void soap_update();
|
||||
|
||||
#endif // INC_SOC_ESTIMATION_H
|
||||
|
||||
Reference in New Issue
Block a user