qingfeng 1 rok pred
rodič
commit
91b97ac81e

+ 9 - 9
LIB/MIDDLE/CellStateEstimation/BatSafetyWarning/V1_0_1/CBMSSafetyWarning.py

@@ -132,15 +132,15 @@ class SafetyWarning:
                     deltvolt_last = np.array([0]*self.param.CellVoltNums)
                 
                 # 故障判断:1.压降累计最大>6mV,次大<3mV,2.最近一次对应电芯的压降>3mV,且离群
-                if min(deltvolt_rst)<-10:
-                    deltvolt_count = np.sum(deltvolt_rst < -10)
-                    deltvolt_index = np.where(deltvolt_rst < -10)
-                    deltvolt_last1 = deltvolt_last[deltvolt_index]
-                    if deltvolt_count < 4 and min(deltvolt_last1) < -10:
-                        cellshortfault1=1
-                        cellshort_num= list(np.where(deltvolt_last<-10)[0]+1)
-                        break
-                elif min(deltvolt_rst)<-6:
+                # if min(deltvolt_rst)<-10:
+                #     deltvolt_count = np.sum(deltvolt_rst < -10)
+                #     deltvolt_index = np.where(deltvolt_rst < -10)
+                #     deltvolt_last1 = deltvolt_last[deltvolt_index]
+                #     if deltvolt_count < 4 and min(deltvolt_last1) < -10:
+                #         cellshortfault1=1
+                #         cellshort_num= list(np.where(deltvolt_last<-10)[0]+1)
+                #         break
+                if min(deltvolt_rst)<-6:
                     deltvolt_rst1=list(deltvolt_rst)
                     deltvolt_min_index = deltvolt_rst1.index(min(deltvolt_rst))
                     deltvolt_last_list = list(deltvolt_last)