Browse Source

更改项:
对电池电压解析,读取原始数据后,电芯电压为mv,故障判断中为v

shangguanlie23 3 years ago
parent
commit
3c91e72681
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LIB/MIDDLE/SaftyCenter/diagfault/SC_SamplingSafty.py

+ 1 - 1
LIB/MIDDLE/SaftyCenter/diagfault/SC_SamplingSafty.py

@@ -31,7 +31,7 @@ class SamplingSafty:
         #--------------该电池的所有当前故障-------------
 
         VoltageNum=['单体电压'+str(i) for i in range(1,param.CellVoltNums+1)]#单体电压替换cellvolt_
-        CellVoltage=bms_info[VoltageNum]
+        CellVoltage=bms_info[VoltageNum]/1000
         CellMaxVoltage=CellVoltage.max(axis=1)
         CellMinVoltage=CellVoltage.min(axis=1)
         InVMaxBatNo=CellVoltage[CellVoltage>=param.CellOVlmt].dropna(axis=0,how='all',inplace=False)