From 56d8b772788166196d71b14b836f7240bb53ffdb Mon Sep 17 00:00:00 2001 From: wangfq Date: Fri, 26 Jun 2026 11:18:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=89=E9=99=90=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E5=90=8E=E5=AE=8C=E6=95=B4=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E6=97=A0=E8=BD=A6=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit set_loops_relay_off 之后补充: - loop_VD_FLAG = 0 → 无车 → 绿灯灭 (poll_green_led 自动) - loop_FLAG_OUT = 1 → 触发正常离开输出 - LC_HOLD = 0 → 清除安全保持 - loop_ORG_CNT/SUM=0 → 重置基线跟踪 --- vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c index 5af1aaa..480de0c 100644 --- a/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c +++ b/vd960Loop/utilities/at32f421_freertos_demo/src/TaskLoop.c @@ -300,6 +300,11 @@ void TMR15_GLOBAL_IRQHandler(void) unit->Hold_CNT = 0; if (unit->loop_VD_FLAG) { set_loops_relay_off(unit->loop_num); + unit->loop_VD_FLAG = 0; + unit->loop_FLAG_OUT = 1; + unit->LC_HOLD = 0; + unit->loop_ORG_CNT = 0; + unit->loop_ORG_SUM = 0; } } }