From ebcd7dcdcb97dc4e3c82cde0f481f093c4e25955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=89=E7=92=83=E6=9C=88=E5=85=89?= <15630071+llyg777@user.noreply.gitee.com> Date: Tue, 30 Dec 2025 18:03:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8A=A0=E5=85=A5=E6=96=99?= =?UTF-8?q?=E5=B8=A6=E7=9B=AE=E6=A0=87=E6=A3=80=E6=B5=8B=EF=BC=8C=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=96=99=E5=B8=A6=E5=88=B0=E4=BD=8D=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E6=8E=A7=E5=88=B6=E6=BB=9A=E7=AD=92=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- detect_bagor35bag/README.md | 2 +- detect_bagor35bag/main_bag_judgment.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/detect_bagor35bag/README.md b/detect_bagor35bag/README.md index 8bbcff9..5ac0589 100644 --- a/detect_bagor35bag/README.md +++ b/detect_bagor35bag/README.md @@ -47,7 +47,7 @@ THRESHOLD_maxX = 1430 # 掉出滚筒阈值 - 掉出滚筒 → 停机报警 - 到位: - bag → 立即停止滚筒 - - bag35 → 延时2s → 反转2s → 停止 + - bag35 → 延时2s → 这里不确定能不能直接正转变反转加了一个停止滚筒→ 反转2s → 停止 --- diff --git a/detect_bagor35bag/main_bag_judgment.py b/detect_bagor35bag/main_bag_judgment.py index c28529c..1ee62a6 100644 --- a/detect_bagor35bag/main_bag_judgment.py +++ b/detect_bagor35bag/main_bag_judgment.py @@ -46,6 +46,8 @@ def handle_bag_motor(cls, status_bool, status_text): elif cls == "bag35": print("[bag35] 到位 → 持续正转滚筒1.5秒 后,反转滚筒 1.5 秒 到原位置→ 停止滚筒") time.sleep(1.5) + #不确定能不能直接正转变成反转,加一个停止吧 + relay_controller.close(conveyor2=True) relay_controller.open(conveyor2_reverse=True) time.sleep(1.5) relay_controller.close(conveyor2_reverse=True)