|
@@ -25,6 +25,7 @@ void CDM(void)
|
|
|
static uint8_T ihd_st_workStat_Delay;
|
|
|
static int16_T sfmd_I_curr_Delay;
|
|
|
static uint8_T Cnt;
|
|
|
+
|
|
|
//
|
|
|
if(ihd_st_workStat_Delay == 2 && ihd_st_workStat != 2)
|
|
|
{
|
|
@@ -46,6 +47,8 @@ void CDM(void)
|
|
|
deltaES[i] = 0;
|
|
|
deltaRS[i] = 0;
|
|
|
Cnt = 0;
|
|
|
+ test_curr =0;
|
|
|
+ test_U=5000;
|
|
|
}
|
|
|
}
|
|
|
//
|
|
@@ -92,6 +95,14 @@ void CDM(void)
|
|
|
cdmv_ohm_deltR[i] = (int16_T) (deltaRS[i]/Cnt * 1000 * 1000);
|
|
|
deltaES[i] = 0;
|
|
|
deltaRS[i] = 0;
|
|
|
+
|
|
|
+ if(deltaR[i] > 5000 &&test_U==5000)
|
|
|
+ {
|
|
|
+ test_curr = ihd_I_curr;
|
|
|
+ test_U =ihv_V_cellU[i];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
Cnt = 0;
|
|
|
}
|