From 6a1cbb0c87d2440d011f74f52a4a80691521542f Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 29 Nov 2024 20:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9moveToEnd=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmcdriver/tmc51x0/tmc51x0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmcdriver/tmc51x0/tmc51x0.cpp b/tmcdriver/tmc51x0/tmc51x0.cpp index 05c7413..5dc0ba7 100644 --- a/tmcdriver/tmc51x0/tmc51x0.cpp +++ b/tmcdriver/tmc51x0/tmc51x0.cpp @@ -32,7 +32,7 @@ static const uint8_t tmc5130_defaultRegisterAccess[TMC5130_REGISTER_COUNT] = { #define TMC5160_GLOBAL_SCALER_MASK 0xFF #define TMC5160_GLOBAL_SCALER_SHIFT 0 /*********************************************************************************************************************** - * 工具�? * + * 工具�? * ***********************************************************************************************************************/ #define FIELD_SET(data, mask, shift, value) (data = (((data) & (~(mask))) | (((value) << (shift)) & (mask)))) @@ -243,7 +243,7 @@ void TMC51X0::moveToEnd(int32_t direction, uint32_t velocityMax) { // @WARNING: // the motor will stop running(1000RPM) for about 10 minutes // If you really need to use this feature, reset XACTUAL every 30s - setXACTUAL(0); + // setXACTUAL(0); if (direction >= 0) { writeInt(TMC5130_RAMPMODE, TMC5130_MODE_POSITION); writeInt(TMC5130_VMAX, to_motor_vel(velocityMax));