|
@@ -29,8 +29,8 @@ class BmsMainControll:
|
|
|
self._view.fault_release_signal.connect(self.operate1)
|
|
|
self._view.jy_signal.connect(self.operate2)
|
|
|
self._view.jy_one_signal.connect(self.operate3)
|
|
|
- self._view.chg_mos_signal.connect(self.operate4)
|
|
|
- self._view.dchg_mos_signal.connect(self.operate5)
|
|
|
+ self._view.dchg_mos_signal.connect(self.operate4)
|
|
|
+ self._view.chg_mos_signal.connect(self.operate5)
|
|
|
self._view.pre_mos_signal.connect(self.operate6)
|
|
|
self._view.gjd1_signal.connect(self.operate7)
|
|
|
self._view.gjd2_signal.connect(self.operate8)
|
|
@@ -212,7 +212,7 @@ class BmsMainControll:
|
|
|
data += (8 - len(data)) * [0]
|
|
|
data[0] = 0x01
|
|
|
data[1] = 0xC0
|
|
|
- data[2] = (do7_status << 1) & 0xFF
|
|
|
+ data[2] = (do7_status << 5) & 0xFF
|
|
|
data[3] = 0
|
|
|
msg = SD.CAN_CONTROL.send((0x18 << 24) | (SD.BCU_ID << 16) | 0x1804, data)
|
|
|
except:
|
|
@@ -226,7 +226,7 @@ class BmsMainControll:
|
|
|
data += (8 - len(data)) * [0]
|
|
|
data[0] = 0x01
|
|
|
data[1] = 0xC0
|
|
|
- data[2] = (do8_status << 1) & 0xFF
|
|
|
+ data[2] = (do8_status << 6) & 0xFF
|
|
|
data[3] = 0
|
|
|
msg = SD.CAN_CONTROL.send((0x18 << 24) | (SD.BCU_ID << 16) | 0x1804, data)
|
|
|
except:
|
|
@@ -381,7 +381,7 @@ class BmsMainControll:
|
|
|
data[0] = 0x00
|
|
|
data[1] = 0xC0
|
|
|
data[2] = 0
|
|
|
- data[3] = (status >> 1) & 0xFF
|
|
|
+ data[3] = (status << 1) & 0xFF
|
|
|
msg = SD.CAN_CONTROL.send((0x18 << 24) | (SD.BCU_ID << 16) | 0x1804, data)
|
|
|
except:
|
|
|
self._view.can_connect_error()
|
|
@@ -395,7 +395,7 @@ class BmsMainControll:
|
|
|
data[0] = 0x00
|
|
|
data[1] = 0xC0
|
|
|
data[2] = 0
|
|
|
- data[3] = (status >> 2) & 0xFF
|
|
|
+ data[3] = (status << 2) & 0xFF
|
|
|
msg = SD.CAN_CONTROL.send((0x18 << 24) | (SD.BCU_ID << 16) | 0x1804, data)
|
|
|
except:
|
|
|
self._view.can_connect_error()
|
|
@@ -409,7 +409,7 @@ class BmsMainControll:
|
|
|
data[0] = 0x00
|
|
|
data[1] = 0xC0
|
|
|
data[2] = 0
|
|
|
- data[3] = (status >> 4) & 0xFF
|
|
|
+ data[3] = (status << 4) & 0xFF
|
|
|
msg = SD.CAN_CONTROL.send((0x18 << 24) | (SD.BCU_ID << 16) | 0x1804, data)
|
|
|
except:
|
|
|
self._view.can_connect_error()
|