I used the code already written in control() to find the center of the road from the given image row and determined the distance from the center of the image. I then added a proportional function that used the deviation to change the steering angle so the car can re-align itself with the road such that the maximum viewable deviation corresponds to the maximum steering angle. 25_meter_radius 50_meter_radius 75_meter_radius