调整通讯协议udp+uart

This commit is contained in:
xu
2026-10-14 10:33:58 +08:00
parent 950e9e6c9e
commit 124e92b95f
7 changed files with 61 additions and 69 deletions
+2 -2
View File
@@ -43,10 +43,10 @@ AppContext::AppContext(QObject* parent)
if (!m_settings->contains(keyAirFlow())) m_settings->setValue(keyAirFlow(), 100);
if (!m_settings->contains("param/pwd")) m_settings->setValue("param/pwd", "6789");
// 通信层(19 条 CAN 报文经 /dev/ttyS7 收发,见 comm/car.h)
// 通信层(19 条 CAN 报文经 UDP 收发:收 9000 / 发 9001,见 comm/car.h)
m_comm = new CarCommunication(&telemetry, this);
// 遥控器(串口 /dev/ttyS5,24 字节二进制帧,见 comm/uart.h)
// 遥控器(串口 /dev/ttyS7,24 字节二进制帧,见 comm/uart.h)
m_rc = new RcCommunication(this);
// 通信层故障信号 → 写入故障历史