Add dummy SoC, replace ID
This commit is contained in:
@@ -120,7 +120,8 @@ void modStateOfChargeProcess(void){
|
||||
|
||||
// Calculate state of charge
|
||||
// calc percent of we put/take to battery capacity
|
||||
modStateOfChargeGeneralStateOfCharge.generalStateOfCharge = modStateOfChargeGeneralStateOfCharge.remainingCapacityAh / modStateOfChargeGeneralConfigHandle->batteryCapacity * 100.0f;
|
||||
modStateOfChargeGeneralStateOfCharge.generalStateOfCharge =
|
||||
modStateOfChargeGeneralStateOfCharge.remainingCapacityAh / modStateOfChargeGeneralConfigHandle->batteryCapacity * 100.0f;
|
||||
|
||||
if(SoC_Save_Flag == 0) {
|
||||
previous_SoC = modStateOfChargeGeneralStateOfCharge.generalStateOfCharge;
|
||||
|
||||
Reference in New Issue
Block a user