|
@@ -329,7 +329,7 @@ static void _force_capacity_full(void){
|
|
|
curr_min_cap = _soc.coulomb_max - _soc.current_real_coulomb;
|
|
curr_min_cap = _soc.coulomb_max - _soc.current_real_coulomb;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (can_modify_min_when_full()) { //前面出现过电芯欠压, 当前容量没到最大容量
|
|
|
|
|
|
|
+ if (can_modify_min_cap()) { //当前容量没到最大容量
|
|
|
//don't trust if curr_min_cap big than before
|
|
//don't trust if curr_min_cap big than before
|
|
|
if (curr_min_cap <= _soc.coulomb_min) {
|
|
if (curr_min_cap <= _soc.coulomb_min) {
|
|
|
_soc.coulomb_min = _soc.coulomb_min * (1.0f - min_cap_lfp) + curr_min_cap * min_cap_lfp; //lowpass filter
|
|
_soc.coulomb_min = _soc.coulomb_min * (1.0f - min_cap_lfp) + curr_min_cap * min_cap_lfp; //lowpass filter
|