Browse Source

调整日志等级

paint_robot_new-v1.5
Lizongdi 2 weeks ago
parent
commit
e1bf35ce73
  1. 2
      RBcore/msg_center.c
  2. 4
      library/common/include/elog_cfg.h
  3. 1
      motor/msp_motor_leisai.c
  4. 1
      project/paint_robot_new/paint_robot_new.c

2
RBcore/msg_center.c

@ -207,7 +207,7 @@ int MsgCenter_Send(const Msg_t *pstMsg)
{ {
// 发送信号量,通知有新消息 // 发送信号量,通知有新消息
Rd_SemPost(&g_astModules[iDstIndex].stSem, __func__, NULL); Rd_SemPost(&g_astModules[iDstIndex].stSem, __func__, NULL);
log_d("[%p] send success ID:%x to %d", __builtin_return_address(0), pstMsg->m_uiMsgID, pstMsg->m_uiDstModule); log_v("[%p] send success ID:%x to %d", __builtin_return_address(0), pstMsg->m_uiMsgID, pstMsg->m_uiDstModule);
return RD_SUCCESS; return RD_SUCCESS;
} }

4
library/common/include/elog_cfg.h

@ -33,7 +33,7 @@
/* enable log output. */ /* enable log output. */
#define ELOG_OUTPUT_ENABLE #define ELOG_OUTPUT_ENABLE
/* setting static output log level. range: from ELOG_LVL_ASSERT to ELOG_LVL_VERBOSE */ /* setting static output log level. range: from ELOG_LVL_ASSERT to ELOG_LVL_VERBOSE */
#define ELOG_OUTPUT_LVL ELOG_LVL_VERBOSE #define ELOG_OUTPUT_LVL ELOG_LVL_INFO
/* enable assert check */ /* enable assert check */
// #define ELOG_ASSERT_ENABLE // #define ELOG_ASSERT_ENABLE
/* buffer size for every line's log */ /* buffer size for every line's log */
@ -68,7 +68,7 @@
/* enable asynchronous output mode */ /* enable asynchronous output mode */
#define ELOG_ASYNC_OUTPUT_ENABLE #define ELOG_ASYNC_OUTPUT_ENABLE
/* the highest output level for async mode, other level will sync output */ /* the highest output level for async mode, other level will sync output */
#define ELOG_ASYNC_OUTPUT_LVL ELOG_LVL_VERBOSE #define ELOG_ASYNC_OUTPUT_LVL ELOG_LVL_INFO
/* buffer size for asynchronous output mode */ /* buffer size for asynchronous output mode */
#define ELOG_ASYNC_OUTPUT_BUF_SIZE (ELOG_LINE_BUF_SIZE * 10) #define ELOG_ASYNC_OUTPUT_BUF_SIZE (ELOG_LINE_BUF_SIZE * 10)
/* each asynchronous output's log which must end with newline sign */ /* each asynchronous output's log which must end with newline sign */

1
motor/msp_motor_leisai.c

@ -419,7 +419,6 @@ static int LeiSai_ParseResponse(Motor_Instance_t *pstMotor, const uint8_t *pucDa
iRealVelocity[1] = MotorMgr_SpeedConvertex(pstMotor, iRealVelocity[0]); iRealVelocity[1] = MotorMgr_SpeedConvertex(pstMotor, iRealVelocity[0]);
iRealVelocity[0] = pstMotor->m_stConfig.m_ucMotorID; iRealVelocity[0] = pstMotor->m_stConfig.m_ucMotorID;
MsgCenter_SendTo(MODULE_NAME_CUSTOM, CUSTOM_GET_SPEED, iRealVelocity, sizeof(iRealVelocity)); MsgCenter_SendTo(MODULE_NAME_CUSTOM, CUSTOM_GET_SPEED, iRealVelocity, sizeof(iRealVelocity));
log_d("iRealVelocity[1] = %d", iRealVelocity[1]);
break; break;
} }
default: default:

1
project/paint_robot_new/paint_robot_new.c

@ -154,7 +154,6 @@ static void Custom_ModuleHandler(const Msg_t *pstMsg)
if (1 == iCurrentSpeed[0]) if (1 == iCurrentSpeed[0])
{ {
g_stIV.CurrentSpeed = iCurrentSpeed[1]; g_stIV.CurrentSpeed = iCurrentSpeed[1];
log_d("speed = %d", g_stIV.CurrentSpeed);
} }
} }
break; break;

Loading…
Cancel
Save