优化了UDP通信代码,增加了消息的时间戳

This commit is contained in:
zjk
2024-11-21 18:13:26 +08:00
parent eb2877f03f
commit abd91d0e88
6 changed files with 219 additions and 48 deletions
+1 -4
View File
@@ -13,7 +13,7 @@ class msg_CcuStateFbMsg:
self.totalPowerGeneration = 0x00
self.ch4o = 0x00
self.o2 = 0x00
self.fcuVoltage = 0x00
self.fcuVoltage = 0x1230
self.fcuCurrent = 0x00
self.o2Level = 0x00
self.placeholder1 = 0x00
@@ -83,9 +83,6 @@ class msg_CcuStateFbMsg:
self.placeholder5 = 0x00
self.checkCode = 0x00
def pack(self):
# 初始化数据
self.length = 0x0000