feat: 检测算法移植 DLD154V4B V2.0, 删除旧线圈算法

- 自适应测量窗 2^19 (~8.74ms @60MHz), IIR 79/256 + 斜率限幅 5%
- 稳定期 128 窗快速收敛; 基线跟踪窗 500 + 冻结保护(超时+稳定性双条件)
- 进入确认 3 次; 平坦性三条件离开 (CN200910309382), 阈值按新幅值基准缩放
- 删除 FltHistoryManager/SecondOrderState/StageRangeConfig/二次判断/FUNCTION_A/B
- 断线重连/有限存在超时: 全复位重建基线; 安全复位恢复启用; 灵敏度开关运行时生效
- BLE: loop_capvd 去掉 <<5, condition 改用 g_env_activity, variation 幅值基准 8x
- 修复 update_moving_average window uint8 截断; 稳定期计数器改全局可复位
- FIRMWARE_VER 4.00 -> 4.20; 新增 README.md 与 docs/devlog.md
This commit is contained in:
wangfq
2026-07-18 23:30:12 +08:00
parent 503b812747
commit e3a27af24f
6 changed files with 698 additions and 1304 deletions
+2 -2
View File
@@ -454,11 +454,11 @@ void usart_packet_processing_acs_loop(uint8_t flag)
clear_ble_notify_buf(&g_tmp_report_buf);
uint8_t i = 0,j;
uint32_t _loop_capvd = g_loop_acs_info.loop_capvd << 5;
uint32_t _loop_capvd = g_loop_acs_info.loop_capvd;
g_tmp_report_buf.flag = flag;
g_loop_acs_info.condition = (flt_mgr.cnt_not_idle > 150) ? 15: (flt_mgr.cnt_not_idle / 10);
g_loop_acs_info.condition = (g_env_activity > 150) ? 15 : (g_env_activity / 10);
if(loop1_FLAG_CUT){
g_loop_acs_info.condition = 15;
}