Explorar o código

update 过温等级和电压跳1V以下的等级为4级

qingfeng %!s(int64=2) %!d(string=hai) anos
pai
achega
f78530fc51

+ 2 - 2
LIB/MIDDLE/CellStateEstimation/BatDiag/V1_0_0/CBMSBatDiag.py

@@ -162,7 +162,7 @@ class BatDiag:
                     if voltfail_time>self.param.volt_time:    #持续时间
                         time=self.bmstime[i]
                         code='C309'
-                        faultlv=3
+                        faultlv=4
                         faultinfo='电芯电压采样系统失效'
                         faultadvice='通知用户更换电池,电池返厂维修'
                         self.df_diag_ram.loc[len(self.df_diag_ram)]=[time, end_time, self.sn, code, faultlv, faultinfo, faultadvice]
@@ -460,7 +460,7 @@ class BatDiag:
                         if ot_time>self.param.temp_time:
                             time=self.bmstime[i]
                             code='C302'
-                            faultlv=3
+                            faultlv=4
                             faultinfo='温度{}高温'.format(celltemp1.index(celltempmax1)+1)
                             faultadvice='技术介入诊断'
                             self.df_diag_ram.loc[len(self.df_diag_ram)]=[time, end_time, self.sn, code, faultlv, faultinfo, faultadvice]