Commit Graph

4 Commits

Author SHA1 Message Date
pNexus f0072c3bd0 refactor(protocol): CoP 帧字段从 float 改为整型,单位 mm→cm / kg
cop_x/cop_y 改为 int16_t (cm),force 改为 uint16_t (kg),
帧长 17→11 字节,降低带宽占用;1 cm 精度满足平衡板场景需求。
2026-05-12 16:11:19 +08:00
pNexus b72ea5334f refactor(protocol): 移除上行帧 seq 字段,精简协议开销
BLE 链路层已有重传保序机制,应用层 seq 冗余且从未被接收端消费,
移除后 CoP 帧 18→17 字节、Encoder 帧 14→13 字节。
2026-05-12 15:58:46 +08:00
pNexus dc525ea4e7 feat(gml670x4): 所有协议帧添加 CRC-8/MAXIM 校验
使用 Zephyr crc8() 对帧头之后的载荷计算 CRC,上行发送前填充、
下行接收时校验不通过则丢弃并告警。同步更新协议文档。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-09 14:38:28 +08:00
pNexus 2ab146b49c docs(GML670x4_V2):移动文档到doc目录下 2026-05-06 18:11:41 +08:00