|
|
@@ -272,10 +272,12 @@ static void soc_update_by_current_and_time(float current_now, float delta_time,
|
|
|
soc_warning("calibrate OK, charging coulomb: %f\n", _soc.charger_coulomb);
|
|
|
}else { //如果校准过,单电芯过压,100%的容量,设置最大容量为当前容量
|
|
|
if (bms_health()->sigle_cell_over_voltage){
|
|
|
+#if 0 /* 暂时去掉,最大容量不变化,只校准欠压后的可放电的最小容量 */
|
|
|
if ((_soc.coulomb_now >= DEFALUT_MIN_COULOMB) && (_soc.coulomb_now <= DEFALUT_MAX_COULOMB)) {
|
|
|
_soc.coulomb_max = _soc.coulomb_now;
|
|
|
soc_warning("signal cell over vol, cap full, reset coul max to coul now: %f\n", _soc.coulomb_max);
|
|
|
}
|
|
|
+#endif
|
|
|
}
|
|
|
}
|
|
|
}
|