diff --git a/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.cpp b/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.cpp index 1ebef56..b2d90de 100644 --- a/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.cpp +++ b/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.cpp @@ -63,7 +63,7 @@ static void cmd_dump_ack(I_XYRobotCtrlModule::base_param_t& ack) { ZLOGI(TAG, " run_to_zero_dec :%d", ack.run_to_zero_dec); } -void XYRobotScriptCmderModule::regXYRobot(int id, I_XYRobotCtrlModule* robot) { +void XYRobotScriptCmderModule::regmodule(int id, I_XYRobotCtrlModule* robot) { ZASSERT(moduler.find(id) == moduler.end()); ZASSERT(robot != nullptr); moduler[id] = robot; diff --git a/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.hpp b/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.hpp index 5aa826a..34cfeae 100644 --- a/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.hpp +++ b/components/xy_robot_ctrl_module/xy_robot_script_cmder_module.hpp @@ -13,7 +13,7 @@ class XYRobotScriptCmderModule { public: void initialize(CmdScheduler* cmdScheduler); - void regXYRobot(int id, I_XYRobotCtrlModule* robot); + void regmodule(int id, I_XYRobotCtrlModule* robot); void regcmd(); private: