1
$\begingroup$

I'm trying to design a PID system for the longitudinal control of an autonomous vehicle. I figured out about most of it but I'm trying to figure out the Kp, Ki and Kd values. This is an illustration of what I'm working with: enter image description here

So the PID controller outputs u, which is the acceleration value. However, I don't know how to find the Kp, Ki and Kd.

$\endgroup$
1

2 Answers 2

2
$\begingroup$

In addition to the manual Ziegler-Nichols method on manual tuning, I wanted to point out that the dynamics of the throttle/brake might not be symmetric. In that case, the set of Kp, Ki, Kd working for throttle (acceleration), might not work for braking (deceleration).

$\endgroup$
1
  • $\begingroup$ So if I had to write this in Python, what would be my inputs? $\endgroup$
    – oo92
    May 1, 2020 at 9:27
1
$\begingroup$

Kp, Kd, Ki are called gains of the controller and can be found using manual tuning or via some techniques for example the Ziegler-Nichols method which is more precise. And you can use different software for example MATLAB to achive the desired controller response and can calculate PID gains. For more information on PID gains tuning, I would like to refer a previous answer, which will elaborate in detail:

What are good strategies for tuning PID loops?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.