Browse Source

更改静置时间的起点

qingfeng 3 years ago
parent
commit
0b0ca5fafe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      LIB/MIDDLE/CellStateEstimation/SOH/V1_0_0/CBMSBatSoh.py

+ 2 - 2
LIB/MIDDLE/CellStateEstimation/SOH/V1_0_0/CBMSBatSoh.py

@@ -188,7 +188,7 @@ class BatSoh:
         for i in range(3,len(self.df_bms)-3):
 
             if abs(self.packcrnt[i]) < 0.3:     #电流为0
-                delttime=(self.bmstime[i]-self.bmstime[i-1]).total_seconds()
+                delttime=(self.bmstime[i+1]-self.bmstime[1]).total_seconds()
                 standingtime=standingtime+delttime
                 self._celltemp_weight(i)     #获取不同温度对应的静置时间
 
@@ -364,7 +364,7 @@ class BatSoh:
 
             #获取两点法法所需数据-开始
             if abs(self.packcrnt[i]) < 0.2:     #判断非平台区静置状态
-                delttime=(self.bmstime[i]-self.bmstime[i-1]).total_seconds()
+                delttime=(self.bmstime[i+1]-self.bmstime[i]).total_seconds()
                 standingtime=standingtime+delttime
                 self._celltemp_weight(i)     #获取不同温度对应的静置时间