From 91467cf4db3e03449453a5a13c4a03eaee7f7dcf Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Tue, 15 Sep 2026 14:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=A7=92=E5=BA=A6=E5=81=8F?= =?UTF-8?q?=E5=B7=AE1=E7=A7=92=E5=90=8E=E8=A7=A6=E5=8F=91=E8=A7=92?= =?UTF-8?q?=E5=BA=A6=E9=94=81=EF=BC=8C=E5=85=B3=E6=9E=AA=E5=90=8E=E5=81=9C?= =?UTF-8?q?=E8=BD=A6=E6=97=B6=E9=97=B4=E7=BC=A9=E7=9F=AD10=E5=80=8D?= =?UTF-8?q?=EF=BC=88=E4=B9=8B=E5=89=8D=E7=9A=84=E6=95=B0=E5=80=BC=E6=98=AF?= =?UTF-8?q?=E4=B8=BA=E4=BA=86=E8=B0=83=E8=AF=95=E5=A5=BD=E7=9C=8B=E7=8E=B0?= =?UTF-8?q?=E8=B1=A1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/paint_robot_new/paint_robot_new.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/paint_robot_new/paint_robot_new.c b/project/paint_robot_new/paint_robot_new.c index 3138ad9..236c8f1 100644 --- a/project/paint_robot_new/paint_robot_new.c +++ b/project/paint_robot_new/paint_robot_new.c @@ -82,7 +82,7 @@ static void Move_Halt_AngleError(void) if (1 == angle_protect_lock) { - if (Rd_GetTime() - uiLastTime >= 6000 * g_stCV.Paint_Gun_Shutdown_Distance / g_stIV.RobotMoveSpeed) + if (Rd_GetTime() - uiLastTime >= 600 * g_stCV.Paint_Gun_Shutdown_Distance / g_stIV.RobotMoveSpeed) { MsgCenter_SendTo(MODULE_NAME_MOTOR, COMMON_CMD_STOP_ALL, NULL, 0); } @@ -95,7 +95,7 @@ static void Move_Halt_AngleError(void) if ((abs(g_stIV.CurrentAngle - g_stCV.RobotUpAngleValue) > g_stCV.Robot_Permitted_Angler_Error_Value_E_2D) && 0 == g_Paint_State) { - if(g_ipaintOffCount++ > 500) + if(Rd_GetTime() - g_ipaintOffCount > 1000) { MsgCenter_SendTo(MODULE_NAME_CUSTOM, COMMON_CMD_STOP_ALL, NULL, 0);//先关枪 angle_protect_lock = 1; @@ -105,7 +105,7 @@ static void Move_Halt_AngleError(void) else { //计数器清零 - g_ipaintOffCount = 0; + g_ipaintOffCount = Rd_GetTime(); } }