From 29d2285a027dcdaad91e08951325ba5596077d57 Mon Sep 17 00:00:00 2001 From: bmy <2583236812@qq.com> Date: Mon, 10 Jun 2024 17:47:25 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=B8=8A=E7=94=B5=E5=A4=8D=E4=BD=8D?= =?UTF-8?q?=E5=88=B0=E6=8C=87=E5=AE=9A=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BC4D.code-workspace | 2 +- app/by_servo.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BC4D.code-workspace b/BC4D.code-workspace index 80ba041..66a9430 100644 --- a/BC4D.code-workspace +++ b/BC4D.code-workspace @@ -30,7 +30,7 @@ "titleBar.activeBackground": "#1A4A07", "titleBar.activeForeground": "#F3FEEF" }, - "EIDE.OpenOCD.ExePath": "C:/toolchains/openocd-arterytek/bin/openocd.exe", + "EIDE.OpenOCD.ExePath": "D:/Program Files (x86)/at32_OpenOCD_V2.0.2/bin/openocd.exe", "cortex-debug.variableUseNaturalFormat": true } } \ No newline at end of file diff --git a/app/by_servo.c b/app/by_servo.c index 53569e6..9bcab9e 100644 --- a/app/by_servo.c +++ b/app/by_servo.c @@ -2,6 +2,7 @@ #include "at32f415.h" #include "lwprintf.h" +#include "by_debug.h" /** * @brief 设置云台摇臂 @@ -136,11 +137,12 @@ void by_servo_set_storage(int16_t angle) void by_servo_init(void) { // 后续要不全初始化为空值,由主控按顺序初始化 - by_servo_set_claw_arm(220); // 36-220 - by_servo_set_claw(25); // 25-90 + by_servo_set_claw(25); // 25-90 by_servo_set_camera(45); by_servo_set_scoop(0); by_servo_set_storage(0); + delay_sec(4); + by_servo_set_claw_arm(220); // 36-220 } void by_servo_can_handle(uint16_t stdd_id, const uint8_t *data, uint8_t len)