Browse Source

更新内短路报警

qingfeng 2 years ago
parent
commit
231f5e7d42

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

@@ -134,8 +134,8 @@ class SafetyWarning:
                 # 故障判断:1.压降累计最大>6mV,次大<3mV,2.最近一次对应电芯的压降>3mV,且离群
                 if min(deltvolt_rst)<-6:
                     deltvolt_rst1=list(deltvolt_rst)
-                    deltvolt_min_index = list(deltvolt_rst).index(min(deltvolt_rst))
-                    deltvolt_last_list1 = deltvolt_last_list
+                    deltvolt_min_index = deltvolt_rst1.index(min(deltvolt_rst))
+                    deltvolt_last_list1 = deltvolt_last_list.copy()
                     deltvolt_last_list1.pop(deltvolt_min_index)
                     deltvolt_rst1.remove(min(deltvolt_rst))
                     if min(deltvolt_rst1)>-3 and deltvolt_last_list[deltvolt_min_index]<-3 and min(deltvolt_last_list1)>-2.5: