Coder Social home page Coder Social logo

carnd-pid-control-project's Introduction

CarND-Controls-PID

Self-Driving Car Engineer Nanodegree Program


P, I and D

This section explains the effect of the P, I and D parameter when used to set the steering angle of a car that should follow a defined trajectory:

  • The P component in the PID controller sets the steering angle towards the desired position proportionally to the error. This means, the bigger the parameter, the more aggressive will the controller head to the goal.

  • The D component in the PID controller sets the steering angle stands for derivative. Depending on how big the change (therefore derivative) of the error is, the steering is being damped/strengthened.

  • The I component (integral) increases steering if the error persists over time. This is necessary if the steering is slightly skewed.

Parameter Tuning

I started to manually tune P, then D then I, resulting in 0.03, 0.00001, 6 as PID values. These parameters were able to move the car along the track for a whole round.

I then implemented the twiddle algorithm that was presented in the class. The challenging part was to simulate the control flow that was done in the class with run(robot, p) within the simulator.

I first ran twiddle with [1,1,1] similar to the class but noticed that (as I started with parameters that seem to be ok) 1 was a bit much and decreased dp to [0.1, 0.1, 0.1].

The final values are [0.577838, 1e-05, 7.48411]. Watching the car drive with this PID controller, it feels a bit shaky. I assume that the reason is the high D value. I think this could potentially be fixed by incorporating a very high steering value into the error but I haven't tried this out.

carnd-pid-control-project's People

Contributors

domluna avatar baumanab avatar chaupow avatar mvirgo avatar swwelch avatar davidobando avatar citlaligm avatar htuennermann avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.