Browse Source

update

master
zhaohe 1 year ago
parent
commit
74ab9d32d6
  1. 2
      components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp

2
components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp

@ -21,6 +21,8 @@ void XYRobotCtrlModule::initialize(int32_t id, IStepperMotor* stepM1, IStepperMo
m_thread.init("XYRobotCtrlModule", 1024, osPriorityNormal); m_thread.init("XYRobotCtrlModule", 1024, osPriorityNormal);
module_active_cfg(); module_active_cfg();
xymotor_enable(1); xymotor_enable(1);
m_stepM1->setScaleDenominator(10); // TODO:修改这个参数为配置参数
m_stepM2->setScaleDenominator(10); // TODO:修改这个参数为配置参数
} }
void XYRobotCtrlModule::create_default_cfg(config_t& cfg) { void XYRobotCtrlModule::create_default_cfg(config_t& cfg) {

Loading…
Cancel
Save