From 1d829f09628d94cfcb9033a76d8f74eaf5230d95 Mon Sep 17 00:00:00 2001 From: "REASEARCHER\\18383" <1633026436@qq.com> Date: Tue, 19 Aug 2025 14:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E8=BE=83=E5=89=8D=E4=B8=80=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BC=98=E5=8C=96=E4=B8=80=E4=BA=9B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hyt2/BSP/Driver/tmc2160/tmc2160.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Hyt2/BSP/Driver/tmc2160/tmc2160.c b/Hyt2/BSP/Driver/tmc2160/tmc2160.c index ed6a68b..9f6c59f 100644 --- a/Hyt2/BSP/Driver/tmc2160/tmc2160.c +++ b/Hyt2/BSP/Driver/tmc2160/tmc2160.c @@ -576,7 +576,7 @@ char tmc2160_write_register(char choice, unsigned char mode, unsigned char data) buff[1] = tmc2160_chopconf_data(data); #ifdef PTZ_SUPER_LIGHT_WORM_STEP_TMC2160_AS5047D_24V buff[2] = 0xec;//ed,,高4为被动快速衰减时间,可降低中程共振 - buff[3] = 0xc3;//03 + buff[3] = 0x43;//03 buff[4] = 0x38;//C3 #endif @@ -596,7 +596,7 @@ char tmc2160_write_register(char choice, unsigned char mode, unsigned char data) case TMC2160_VDCMIN: //22:8位有效 buff[0] = TMC2160_VDCMIN +0x80; buff[1] = 0x00; - buff[2] = 0x03; + buff[2] = 0x04; buff[3] = 0xff; buff[4] = 0x00; if(choice == TMC2160_HORI) @@ -612,7 +612,7 @@ char tmc2160_write_register(char choice, unsigned char mode, unsigned char data) buff[1] = 0x00; buff[2] = 0x00; buff[3] = 0x00; - buff[4] = 0x19; + buff[4] = 0x11; if(choice == TMC2160_HORI) { hori_regis.chop_conf = tmc2160_write_hori_data(choice, buff[0],buff[1],buff[2],buff[3],buff[4]);