From 2d1b2973496475a2954be11ec7d85bf4c7179ecd Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 14 Jul 2024 16:19:00 +0800 Subject: [PATCH] update --- .settings/language.settings.xml | 4 ++-- a8000_protocol | 2 +- sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index 68ccc9d..0495c7d 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/a8000_protocol b/a8000_protocol index ec875a3..5081899 160000 --- a/a8000_protocol +++ b/a8000_protocol @@ -1 +1 @@ -Subproject commit ec875a3f707e73bf00266b2349d55f98caf41263 +Subproject commit 5081899a39cbbfca1beb5da571b1df2f0ce46789 diff --git a/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp b/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp index d1e50b5..091bc83 100644 --- a/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -638,7 +638,7 @@ int32_t StepMotorCtrlModule::trysyncpos() { return 0; } int32_t StepMotorCtrlModule::setnowpos(int32_t x) { - int32_t final_x = x+m_cfg.motor_dzero; + int32_t final_x = x + m_cfg.motor_dzero; m_stepM1->setXACTUAL(final_x); m_stepM1->set_enc_val(final_x); return 0;