Self-Driving Car Engineer Nanodegree Program
In this implementation, we use the following parameters:
Kp = 0.1
Ki = 0.001
Kd = 1.5
These parameters are chosen from a manual tuning.
The result is shown in this video.
In order to test the effect of the P, I and D components, we introduced a 0.2 bias on the driving angle.
- With P component only, the car oscillates heavily in the road, as shown in this video.
- With PD components, the car can drive on the road, but has a constant offset from the middle of the road, as shown in this video.
- With both the PID components, the car now drives much smoothly in the middle of the road, as shown in this video.