|
@@ -548,7 +548,7 @@ void soc_update(void){
|
|
|
_soc.charger_coulomb = 0;//clear charing
|
|
_soc.charger_coulomb = 0;//clear charing
|
|
|
_soc.total_coulomb += _soc.pre_charger_coulomb / 3600.0f;
|
|
_soc.total_coulomb += _soc.pre_charger_coulomb / 3600.0f;
|
|
|
chargering = 1;
|
|
chargering = 1;
|
|
|
- start_charger_coulomb = _soc.coulomb_now - _soc.coulomb_min;
|
|
|
|
|
|
|
+ start_charger_coulomb = _soc.coulomb_now;
|
|
|
#if LEAST_SQUARE==1
|
|
#if LEAST_SQUARE==1
|
|
|
start_least_square(0);
|
|
start_least_square(0);
|
|
|
#endif
|
|
#endif
|