From d43d42bbc0b153b58ad358532c17c36bc818e6f2 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 3 Apr 2025 11:25:41 +0800 Subject: [PATCH] =?UTF-8?q?v1009|=20=E6=AD=A5=E8=BF=9B=E7=94=B5=E6=9C=BAea?= =?UTF-8?q?syrotate=E4=BD=BF=E7=94=A8=E7=94=B5=E6=9C=BA=E7=9A=84rotate?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp | 3 ++- usrc/version.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 3231c7f..1ac2061 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 @@ -609,7 +609,8 @@ int32_t StepMotorCtrlModule::do_step_motor_easy_rotate(int32_t direction) { [this, direction]() { befor_motor_move(); { - rotate(direction, m_cfg.motor_default_velocity); + // rotate(direction, m_cfg.motor_default_velocity); + m_stepM1->rotate(direction >= 0 ? m_cfg.motor_default_velocity : -m_cfg.motor_default_velocity); while (true) { if (m_thread.getExitFlag()) break; diff --git a/usrc/version.h b/usrc/version.h index 4c0a70d..bc805a4 100644 --- a/usrc/version.h +++ b/usrc/version.h @@ -1,2 +1,2 @@ #pragma once -#define PC_VERSION 1008 +#define PC_VERSION 1009