|
@@ -227,7 +227,7 @@ class BatDiag:
|
|
|
else:
|
|
|
pass
|
|
|
else:
|
|
|
- if (cellvoltmax0-cellvoltmin0)<self.param.CellVoltDiffLv1-0.05 and (cellvoltmax1-cellvoltmin1)>self.param.CellVoltDiffLv1-0.05: #二级欠压恢复
|
|
|
+ if (cellvoltmax0-cellvoltmin0)<self.param.CellVoltDiffLv1-0.05 and (cellvoltmax1-cellvoltmin1)<self.param.CellVoltDiffLv1-0.05: #二级欠压恢复
|
|
|
time=self.bmstime[i]
|
|
|
self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==16].index, 'end_time'] = time
|
|
|
else:
|
|
@@ -311,7 +311,7 @@ class BatDiag:
|
|
|
else:
|
|
|
if self.packcrnt[i]>self.param.PackChgOc+10:
|
|
|
time=self.bmstime[i]
|
|
|
- self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==22].index, 'end_time'] = time
|
|
|
+ self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==21].index, 'end_time'] = time
|
|
|
else:
|
|
|
pass
|
|
|
|