|
|
@@ -22,7 +22,7 @@ static float _discharger_coefficient = 1.0f;
|
|
|
static float _discharger_no_full_coef = 1.0f;
|
|
|
static uint32_t charger_remain_time = 0;
|
|
|
static uint8_t version_changed = 0;
|
|
|
-static const float _discharger_gain[] = {1.0f/*>0度*/, 1.03f/*-2<t<=0*/, 1.04f/*-5<t<=-2*/, 1.05f/*-10<t<=-5*/, 1.06f/*-15<t<=-10*/, 1.08f/*-20<t<=-15*/};
|
|
|
+static const float _discharger_gain[] = {1.0f/*>0度*/, 1.03f/*-2<t<=0*/, 1.06f/*-5<t<=-2*/, 1.08f/*-10<t<=-5*/, 1.11f/*-15<t<=-10*/, 1.15f/*-20<t<=-15*/};
|
|
|
#define MAX_TIME_FULL_TO_EMPTY (5 * 24 * 3600) //充满到欠压5天内达到,可以校准最小电量
|
|
|
#define MAX_TIME_EMPTY_TO_FULL (24 * 3600) //欠压到充满24小时内达到,可以校准最小电量
|
|
|
#define DEFALUT_MAX_COULOMB (MAX_HA * 3600.0f)
|
|
|
@@ -179,7 +179,7 @@ static void soc_update_discharger_coeff(void){
|
|
|
if ((abs(measure_value()->load_current) > 10.0f) && (abs(measure_value()->load_current) < 500)) {
|
|
|
coff = 1.05f;
|
|
|
}else {
|
|
|
- coff = _discharger_no_full_coef;
|
|
|
+ //coff = _discharger_no_full_coef;
|
|
|
}
|
|
|
_discharger_coefficient = _discharger_coefficient * coff;
|
|
|
}
|