first soap ideals
This commit is contained in:
@ -66,7 +66,15 @@ float soe_update()
|
||||
}
|
||||
void soap_update()
|
||||
{
|
||||
//
|
||||
float r0 = soc_approxparameterbysoc(current_floatsoc, R0, N_MODELPARAMETERS);
|
||||
float r1 = soc_approxparameterbysoc(current_floatsoc, R1, N_MODELPARAMETERS);
|
||||
float ocv = soc_approxparameterbysoc(current_floatsoc, OCV_Data, N_MODELPARAMETERS);
|
||||
|
||||
float allowedvoltagedrop = ocv - SOAP_MINIMUM_VOLTAGE;
|
||||
float rin = r0+r1;
|
||||
float maxcurrent = allowedvoltagedrop/rin;
|
||||
//TODO think about how to pass parameters
|
||||
|
||||
}
|
||||
|
||||
float soc_approxparameterbysoc(float soc,float* lut, uint8_t lutlen)
|
||||
|
||||
Reference in New Issue
Block a user