From 470ac52a0a02c31264577769b813205db2be7a1a Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 23 Oct 2023 17:46:29 +0800 Subject: [PATCH] update --- components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp b/components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp index 1804e56..edc7a4f 100644 --- a/components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp +++ b/components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp @@ -336,8 +336,8 @@ int32_t XYRobotCtrlModule::set_base_param(const base_param_t& inparam) { }; void XYRobotCtrlModule::active_cfg() { - m_stepM1->setScale(m_basecfg.distance_scale * 2); - m_stepM2->setScale(m_basecfg.distance_scale * 2); + m_stepM1->setScale(m_basecfg.distance_scale/2); + m_stepM2->setScale(m_basecfg.distance_scale/2); m_stepM1->setIHOLD_IRUN(m_basecfg.ihold, m_basecfg.irun, m_basecfg.iholddelay); m_stepM2->setIHOLD_IRUN(m_basecfg.ihold, m_basecfg.irun, m_basecfg.iholddelay); }