调试初版
This commit is contained in:
+3
-3
@@ -30,7 +30,7 @@ const int kDataLen = 8;
|
||||
// 车端 CAN 的 UDP 端口:本机 9000 收(车端反馈),上行命令发往 9001
|
||||
const quint16 kCanRxPort = 9000;
|
||||
const quint16 kCanTxPort = 9001;
|
||||
const char* kCanTxHost = "127.0.0.1";
|
||||
const char* kCanTxHost = "0.0.0.0";
|
||||
|
||||
quint8 canChecksum(quint32 canId, quint8 dlc, const quint8* data)
|
||||
{
|
||||
@@ -497,8 +497,8 @@ void CarCommunication::handleFrame(quint32 canId, const quint8* d)
|
||||
// ---------- 0x18368180 洗消工作状态1:模式 / 泵 / 球阀 / 液位 / 流量 ----------
|
||||
case kIdDecontamFb1: {
|
||||
const quint8 mode = quint8(intelBits(d, 0, 2));
|
||||
m_tel->washMode = (mode == 3) ? QString::fromUtf8("消毒作业")
|
||||
: (mode == 2) ? QString::fromUtf8("消除作业")
|
||||
m_tel->washMode = (mode == 3) ? QString::fromUtf8("手动消毒")
|
||||
: (mode == 2) ? QString::fromUtf8("手动消除")
|
||||
: QString("--");
|
||||
m_tel->washStart = intelBits(d, 2, 1) != 0;
|
||||
m_tel->plunger = intelBits(d, 3, 1) != 0;
|
||||
|
||||
Reference in New Issue
Block a user