From 12c64dd79ad5069e9e6ae50d7ee688edafe84f0f Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 14 十一月 2019 17:41:29 +0800 Subject: [PATCH] 控制完成,纹波过大 --- 源码/核心板/Src/application/beep_logic_app.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" index 33b32a1..74c8075 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" @@ -37,17 +37,20 @@ beep_ontime = ONTIME1; beep_offtime = OFFTIME1; beep_state=1; - }else if (min_dist <= g_com_map[ALARM_DISTANCE2]) - { - beep_ontime = ONTIME2; - beep_offtime = OFFTIME2; - beep_state=1; - }else if (min_dist <= g_com_map[ALARM_DISTANCE3]) - { - beep_ontime = ONTIME3; - beep_offtime = OFFTIME3; - beep_state=1; - }else{ + + } +// else if (min_dist <= g_com_map[ALARM_DISTANCE2]) +// { +// beep_ontime = ONTIME2; +// beep_offtime = OFFTIME2; +// beep_state=1; +// }else if (min_dist <= g_com_map[ALARM_DISTANCE3]) +// { +// beep_ontime = ONTIME3; +// beep_offtime = OFFTIME3; +// beep_state=1; +// } + else{ beep_state=0; } -- Gitblit v1.9.3