|
|
|
@ -820,7 +820,7 @@ static void Custom_ModuleHandler(const Msg_t *pstMsg) |
|
|
|
g_stIV.Left_Motor_Err = uiFailtCode[1]; |
|
|
|
MsgCenter_SendTo(MODULE_NAME_DAEMON, DAEMON_SET_LEFT_MOTOR, NULL, 0); |
|
|
|
} |
|
|
|
else |
|
|
|
else if (uiFailtCode[0] == 2) |
|
|
|
{ |
|
|
|
g_stIV.Right_Motor_Err = uiFailtCode[1]; |
|
|
|
MsgCenter_SendTo(MODULE_NAME_DAEMON, DAEMON_SET_RIGHT_MOTOR, NULL, 0); |
|
|
|
@ -929,11 +929,11 @@ static void Custom_ModuleHandler(const Msg_t *pstMsg) |
|
|
|
log_a("Motor Error ! error code: left [%d] right [%d]", g_stIV.Left_Motor_Err, g_stIV.Right_Motor_Err); |
|
|
|
} |
|
|
|
|
|
|
|
MsgCenter_SendTo(MODULE_NAME_MOTOR, MOTOR_POWER_DISABLE, NULL, 0); |
|
|
|
MsgCenter_SendTo(MODULE_NAME_RBCORE, RBCORE_CMD_STOP_ALL, NULL, 0); |
|
|
|
if (g_stMK32.IsOnline == 0) |
|
|
|
{ |
|
|
|
g_Is_All_Button_Reset = 0; |
|
|
|
MsgCenter_SendTo(MODULE_NAME_MOTOR, MOTOR_POWER_DISABLE, NULL, 0); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
|