|
@ -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) { |
|
|