From 32cededb2c28150ddc2f6afce2704207ab2abf07 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Sat, 9 May 2026 16:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B0=83=E9=80=9A=E6=89=93=E6=A0=87?= =?UTF-8?q?=E3=80=91=E9=99=8D=E5=88=80=E5=88=B0=E6=8C=87=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=80=BB=E8=BE=91=E5=88=9D=E6=AD=A5=E8=B0=83=E9=80=9A?= =?UTF-8?q?=EF=BC=9B=E5=A2=9E=E5=8A=A0=E6=89=AB=E6=8F=8F=E5=9B=9E=E9=9B=B6?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- diaoerqiege/BHBF_Robot_Lifting_Lug/Core/Src/FSM.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/diaoerqiege/BHBF_Robot_Lifting_Lug/Core/Src/FSM.c b/diaoerqiege/BHBF_Robot_Lifting_Lug/Core/Src/FSM.c index 9e6cf6f..8d223a9 100644 --- a/diaoerqiege/BHBF_Robot_Lifting_Lug/Core/Src/FSM.c +++ b/diaoerqiege/BHBF_Robot_Lifting_Lug/Core/Src/FSM.c @@ -240,6 +240,14 @@ void Automatic_Laser_Scanning() } #endif } + else if (GV.MK32_Key.CH7_SD == -1000) + { + ScanTimeCount = HAL_GetTick(); + ScanState = RISE_KINFE_STATE; + CurrentMoveState = Move_HALT; + CurrentFrontEndState = HALT_STATE; + MaxLaserSensor = 10000;// 恢复非法值 + } else { ScanTimeCount = HAL_GetTick(); @@ -254,11 +262,11 @@ void Automatic_Laser_Scanning() #define knife_rising_height 500 // 自动作业停止后默认上升高度为5mm uint8_t auto_work_mode_states = 5; uint8_t auto_work_halt_states = 10; +int32_t knife_current_altitude = 0; // 激光1读数 void Automatic_Operation() { static int knife_flag = 1; - int32_t knife_current_altitude = 0; // 激光1读数 uint8_t IsAllowRotation_AutoMode = 0; // 是否允许转刀 if (-255 == knife_descent_height)