From 1def053dc071c8dc224229db34610050537a226a Mon Sep 17 00:00:00 2001 From: Richie <2837357W@student.gla.ac.uk> Date: Mon, 20 Nov 2023 10:54:19 +0800 Subject: [PATCH] update pid --- frtos/motor/motor_init.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frtos/motor/motor_init.h b/frtos/motor/motor_init.h index c4e5c20..9b0353b 100644 --- a/frtos/motor/motor_init.h +++ b/frtos/motor/motor_init.h @@ -38,9 +38,9 @@ motor_init(car_struct_t *car_struct) g_right_sem = xSemaphoreCreateBinary(); car_struct->p_pid->use_pid = true; - car_struct->p_pid->kp_value = 600.f; - car_struct->p_pid->ki_value = 66.67f; - car_struct->p_pid->kd_value = 1350.f; + car_struct->p_pid->kp_value = 60.f; + car_struct->p_pid->ki_value = 6.67f; + car_struct->p_pid->kd_value = 135.f; // initialize the car_struct car_struct->p_left_motor->pwm.level = 0u;