From e864d940d7e9424085eabe98f889fcbbfeb4506b Mon Sep 17 00:00:00 2001 From: pxzleo Date: Fri, 26 May 2023 16:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=88=B5=E6=9C=BA=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E7=A7=B0=E9=87=8D=E4=BC=A0=E6=84=9F=E5=99=A8?= =?UTF-8?q?=E5=BC=95=E8=84=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.h | 4 ++-- src/motocontrol.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index 6f61ab2..7ae4029 100644 --- a/src/config.h +++ b/src/config.h @@ -11,8 +11,8 @@ #define BTN_CT 21 // 到顶检测开关 #define BTN_TEST 18 // 测试开关 // 称重传感器- HX711 -#define LOADCELL_DOUT_PIN 16 -#define LOADCELL_SCK_PIN 17 +#define LOADCELL_DOUT_PIN 13 //16 +#define LOADCELL_SCK_PIN 33 //17 /////////////////////////////////////////// #define SERVO_PIN 14 // 锁定舵机PWM控制脚 ////LED diff --git a/src/motocontrol.h b/src/motocontrol.h index 6ae1bd5..fa78bd1 100644 --- a/src/motocontrol.h +++ b/src/motocontrol.h @@ -29,8 +29,8 @@ #define TM_SERVOLOCK 300 // 舵机转到Lock和Unlock等待的时间ms #define TM_ACC_HS 500 // 货物快到地面减速时间--覆盖自动加减速时间--这个地方稍微长一些 -#define SERVO_LOCKPOS 1890 // 舵机锁定位置 -#define SERVO_UNLOCKPOS 1780 // 舵机解锁位置 +#define SERVO_LOCKPOS 1920 // 舵机锁定位置 +#define SERVO_UNLOCKPOS 1800 // 舵机解锁位置 #define SERVO_BLOCKUNLOCKPOS 1700 // 舵机堵转需要转回的位置--可以和SERVO_UNLOCKPOS一样,为了速度快也可以更小 #define HOOK_WEIHT_MIN 100 // 最小货物重量 小于这个认为没挂东西 (克)