qingfeng 1 rok pred
rodič
commit
193b6c6779

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

@@ -136,9 +136,9 @@ class SafetyWarning:
                     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) < -6:
+                    if deltvolt_count < 4 and min(deltvolt_last1) < -10:
                         cellshortfault1=1
-                        cellshort_num= list(np.where(deltvolt_last<-6)[0]+1)
+                        cellshort_num= list(np.where(deltvolt_last<-10)[0]+1)
                         break
                 elif min(deltvolt_rst)<-6:
                     deltvolt_rst1=list(deltvolt_rst)