From c447bfa475ea101c747fabdff21cfcf30816eaba Mon Sep 17 00:00:00 2001 From: wangfq Date: Mon, 29 Jun 2026 18:45:31 +0800 Subject: [PATCH] =?UTF-8?q?tune:=20=E7=A8=B3=E5=AE=9A=E6=9C=9F=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=20100=20=E5=BF=AB=E9=80=9F=E6=94=B6=E6=95=9B=20(?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=20DLD154V4B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c index 248acee..67b2e30 100644 --- a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c +++ b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c @@ -452,12 +452,12 @@ void vd1_task_per_channel(Loop154_Unit *unit) unit->loop_CAPVD = get_flt_value(clamped_value, unit->loop_CAPVD); } - /*--- 2. 稳定期:绕过 IIR 和斜率限幅 ---*/ + /*--- 2. 稳定期:绕过 IIR 和斜率限幅,小窗口快速收敛 ---*/ if (!unit->loop_stable) { unit->loop_CAPVD = unit->loop_Value; update_moving_average(&unit->loop_ORG_SUM, &unit->loop_ORG_CNT, - &unit->loop_Origin, unit->loop_CAPVD, WINDOW_ORIGIN); + &unit->loop_Origin, unit->loop_CAPVD, 100); unit->stable_cnt++; if (unit->stable_cnt >= STABLE_SAMPLES) { unit->loop_stable = 1;