|
@@ -41,10 +41,10 @@ void PIM(void)
|
|
|
pimn_M_P[2][0] = 0; pimn_M_P[2][1] = 0; pimn_M_P[2][2] = 10; pimn_M_P[2][3] = 0;
|
|
|
pimn_M_P[3][0] = 0; pimn_M_P[3][1] = 0; pimn_M_P[3][2] = 0; pimn_M_P[3][3] = 10;
|
|
|
|
|
|
- pimn_V_ocv = (real_T)look1_u16tu16(socd_pct_battSoc, cmnm_pct_soc, cmnm_V_ocv, 13) * 0.001;
|
|
|
- pimn_R_ohm = (real_T)look1_u16tu16(socd_pct_battSoc, cmnm_pct_soc, cmnm_R_ohm, 13) * 0.001 * 0.001;
|
|
|
- pimn_R_polar = 0.001;
|
|
|
- pimn_F_polar = 0;
|
|
|
+ pimn_V_ocv = (real_T)look1_u16tu16(socd_pct_battSoc, cmnm_pct_soc, cmnm_V_ocv, 13) * 0.001;
|
|
|
+ pimn_R_ohm = (real_T)look1_u16tu16(socd_pct_battSoc, cmnm_pct_soc, cmnm_R_ohm, 13) * 0.001 * 0.001;
|
|
|
+ pimn_R_polar = (real_T)look1_u16tu16(socd_pct_battSoc, cmnm_pct_soc, cmnm_R_polar, 13) * 0.001 * 0.001;;
|
|
|
+ pimn_F_polar = 5;
|
|
|
pimn_N_ctn = 0;
|
|
|
pimn_st_workStat_Delay = 0;
|
|
|
}
|
|
@@ -162,10 +162,10 @@ void PIM(void)
|
|
|
pimn_R_polar = (theta[0] * theta[1] -theta[2])/(1 -theta[0]);
|
|
|
pimn_F_polar = -1/log(theta[0]);
|
|
|
|
|
|
- pimn_V_ocv = Saturation_r(pimn_V_ocv,3.2, 4.4);
|
|
|
- pimn_R_ohm = Saturation_r(pimn_V_ocv,0.001, 1);
|
|
|
- pimn_R_polar = Saturation_r(pimn_V_ocv,0.0002, 1);
|
|
|
- pimn_F_polar = Saturation_r(pimn_V_ocv,0, 200);
|
|
|
+ //pimn_V_ocv = Saturation_r(pimn_V_ocv,3.2, 4.4);
|
|
|
+ //pimn_R_ohm = Saturation_r(pimn_V_ocv,0.001, 1);
|
|
|
+ //pimn_R_polar = Saturation_r(pimn_V_ocv,0.0002, 1);
|
|
|
+ //pimn_F_polar = Saturation_r(pimn_V_ocv,0, 200);
|
|
|
|
|
|
|
|
|
|