pref: 提高复位速度

This commit is contained in:
bmy
2024-06-06 12:23:05 +08:00
parent cbb2803d81
commit 11ad46b73d

View File

@@ -116,7 +116,7 @@ void by_motion_set_distance2(float distance, int16_t speed)
if (5.0 >= position_abs) {
position_abs = 0;
by_motion_set_speed_m1(-4);
by_motion_set_speed_m1(-10);
motion_busy_flag = 1;
motion_reset_flag = 1;
LOGD("RESET position_abs = %f\r\n", position_abs);
@@ -171,8 +171,7 @@ void by_motion_init(void)
DRV_ENABLE();
// 上电回零
DWT_Delay(1000000);
by_motion_set_speed_m1(-4);
by_motion_set_speed_m1(-10);
while (SET == gpio_input_data_bit_read(GPIOB, GPIO_PINS_3)) {
// 等待复位
}