From c286c90928bff2c3f618dd465c327c8b99ec3420 Mon Sep 17 00:00:00 2001 From: bmy <2583236812@qq.com> Date: Mon, 10 Jun 2024 17:47:09 +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 --- app/by_stepper.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/by_stepper.c b/app/by_stepper.c index f7c3ec9..35fabc0 100644 --- a/app/by_stepper.c +++ b/app/by_stepper.c @@ -116,7 +116,7 @@ void by_stepper_init(void) // DWT_Delay(40U * (uint16_t)by_stepper.speed); // } - by_stepper_set_speed(STEPPER_SPEED_DIV4); + by_stepper_set_speed(STEPPER_SPEED_DIV1); while (gpio_input_data_bit_read(GPIOB, GPIO_PINS_10) == SET) { gpio_bits_write(GPIOA, GPIO_PINS_8, by_stepper.dir ? TRUE : FALSE); // DIR @@ -131,8 +131,7 @@ void by_stepper_init(void) LOGD("by_stepper init ok"); - by_stepper_set_dir(1); - by_stepper_set_position_millimeter(-160.0f); + by_stepper_set_position_millimeter(160.0f); } void by_stepper_loop(void)