Browse Source

update

master
zhaohe 2 years ago
parent
commit
335439f031
  1. 2
      components/xy_robot_ctrl_module/xy_robot_script_cmder_module.cpp
  2. 2
      components/xy_robot_ctrl_module/xy_robot_script_cmder_module.hpp

2
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;

2
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:

Loading…
Cancel
Save