Changed Voltage percentage curve and changed capacity to 2300mAh for EB

This commit is contained in:
Arne182 2011-03-01 22:35:03 -08:00
parent fcf4ad02f1
commit 3cc2d57e15
2 changed files with 7 additions and 7 deletions

View File

@ -719,17 +719,17 @@ static BOOL __battery_param_udpate(struct battery_type *battery)
batt_id_stable_counter = 0;
}
}
temp_01c = get_temp_01c(battery);
if (batt_id_index == 5)
{
battery->temp_adc = battery->temp_adc * 7;
//battery->temp_adc = battery->temp_adc * 7;
temp_01c = 650 - battery->temp_adc*10;
}
/* calculate temperature*/
// battery->temp_01c = get_temp_c((float)temp_R_kohm / ((float)temp_adc_resl/battery->temp_adc - 1))*10;
temp_01c = get_temp_01c(battery);
if(temp_01c == 700)
{
FL_25[battery->id_index] = 2350;
FL_25[battery->id_index] = 2300;
battery->charge_full_real_mAh = FL_25[battery->id_index];
battery->charge_full_design_mAh = battery->charge_full_real_mAh;
temp_01c = 650 - battery->temp_adc*10;

View File

@ -102,12 +102,12 @@ UINT32 *TEMP_MAP = TEMP_MAP_300K;
UINT32 FL_25[] =
{
1280, /* Unknown battery */
2300, /* Unknown battery */
1280, /* Sony 1300mAh (Formosa) */
1280, /* Sony 1300mAh (HTE) */
1250, /* Sanyo 1300mAh (HTE) */
1230, /* Samsung 1230mAh */
2350, /* HTC Extended 2300mAh */
2300, /* HTC Extended 2300mAh */
};
UINT32 PD_M_COEF[] =
@ -159,7 +159,7 @@ UINT32 M_PARAMETER_Samsung_1230MAH_FORMOSA[] =
UINT32 M_PARAMETER_HTC_2300MAH_FORMOSA[] =
{
/* capacity (in 0.01%) -> voltage (in mV)*/
10000, 4196, 7500, 4165, 4700, 3986, 1700, 3879, 900, 3833, 300, 3740, 0, 3420,
10000, 4135, 7500, 3960, 4700, 3800, 1700, 3727, 900, 3674, 300, 3640, 0, 3420,
};