From e16f6257d2ab1dd2a3b70901f9425542b2a6d76d Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Thu, 17 Sep 2026 09:52:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BE=85=E4=BC=98=E5=8C=96=E3=80=91?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=81=A5=E6=8E=A7=E5=99=A8=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E5=80=99=E7=8A=B6=E6=80=81=E4=B8=8D=E5=AF=B9=E4=BD=86=E6=98=AF?= =?UTF-8?q?online=E4=BB=8D=E4=B8=BA0=E6=97=B6=E7=9A=84=E8=AF=AF=E5=88=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/paint_robot_new/paint_robot_new.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/paint_robot_new/paint_robot_new.c b/project/paint_robot_new/paint_robot_new.c index b675162..7f2062f 100644 --- a/project/paint_robot_new/paint_robot_new.c +++ b/project/paint_robot_new/paint_robot_new.c @@ -279,7 +279,9 @@ static void Custom_ModuleHandler(const Msg_t *pstMsg) // 急停或者遥控器失联 if ((g_stMK32.CH8_SE == -1000 && g_stMK32.CH9_SF == -1000) - || g_stMK32.IsOnline == 0 || g_stIV.Left_Motor_Err != 0 || g_stIV.Right_Motor_Err != 0) + || (g_stMK32.IsOnline == 0 && (g_stMK32.CH8_SE == -1000 || g_stMK32.CH8_SE == 1000 || g_stMK32.CH8_SE == 0) + && (g_stMK32.CH9_SF == -1000 || g_stMK32.CH9_SF == 1000 || g_stMK32.CH9_SF == 0)) + || g_stIV.Left_Motor_Err != 0 || g_stIV.Right_Motor_Err != 0) { MsgCenter_SendTo(MODULE_NAME_MOTOR, MOTOR_POWER_DISABLE, NULL, 0); MsgCenter_SendTo(MODULE_NAME_RBCORE, RBCORE_CMD_STOP_ALL, NULL, 0);