From bd0ec58f069919863fa5e1fab05a5cade4e9399a Mon Sep 17 00:00:00 2001 From: Richie <2837357W@student.gla.ac.uk> Date: Mon, 20 Nov 2023 14:54:15 +0800 Subject: [PATCH] test++++ --- frtos/motor/motor_speed.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frtos/motor/motor_speed.h b/frtos/motor/motor_speed.h index 6f1758c..0696461 100644 --- a/frtos/motor/motor_speed.h +++ b/frtos/motor/motor_speed.h @@ -119,7 +119,7 @@ distance_to_stop(car_struct_t * pp_car_struct, float distance_cm) { if (pp_car_struct->p_left_motor->speed.distance_cm - initial >= distance_cm) { - set_wheel_speed_synced(0u); + set_wheel_speed_synced(0u, pp_car_struct); break; } vTaskDelay(pdMS_TO_TICKS(10));