pNexus
|
93e7990fdf
|
refactor(ads1256): 修改等待 DRDY 和硬件复位函数返回值,增加超时处理
|
2026-05-14 21:17:53 +08:00 |
|
pNexus
|
ffafbc4c6a
|
refactor(protocol): 板面几何与 CoP 计算统一为 cm 单位,force 改 int16
compute_cop 直接输出 int16_t (cm/kg),消除打包时的浮点转换;
BOARD_HALF_WIDTH/LENGTH 从 mm 改 cm,传感器坐标表同步更新。
|
2026-05-12 16:23:55 +08:00 |
|
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
|
97f0d65783
|
feat(gml670-v2): 添加二进制协议定义与 ADS1256 SPI 驱动
- protocol.h: CoP/Encoder/Resistance/Spotter/Heartbeat 帧定义,
GML670 50kg ADC→kg 标定参数
- ads1256: SPI 命令模式驱动,BUFEN=1 解决高阻抗负载误差,
3750 SPS 平衡精度与采样率,SELFCAL + 寄存器回读校验
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-30 17:39:05 +08:00 |
|