|
|
|
@ -924,11 +924,6 @@ static void Custom_ModuleHandler(const Msg_t *pstMsg) |
|
|
|
// 遥控器失联或者电机报错
|
|
|
|
if (g_stMK32.IsOnline == 0 || g_stIV.Left_Motor_Err != 0 || g_stIV.Right_Motor_Err != 0) |
|
|
|
{ |
|
|
|
if (g_stIV.Left_Motor_Err != 0 || g_stIV.Right_Motor_Err != 0) |
|
|
|
{ |
|
|
|
log_a("Motor Error ! error code: left [%d] right [%d]", g_stIV.Left_Motor_Err, g_stIV.Right_Motor_Err); |
|
|
|
} |
|
|
|
|
|
|
|
MsgCenter_SendTo(MODULE_NAME_RBCORE, RBCORE_CMD_STOP_ALL, NULL, 0); |
|
|
|
if (g_stMK32.IsOnline == 0) |
|
|
|
{ |
|
|
|
|