Coder Social home page Coder Social logo

pidcontrol's Introduction

PID Control

PID controller to control the steering angle of a self driving car


P - Controller

  • A controller with only a proportional gain (P gain) oscillates a lot.
  • The amplitude of these oscillations are directly proportional to the gain.
  • Here's a video of the self driving car steering only on P - Controller. P - Controller

PD - Controller

  • A P - Controller along with a derivative gain (D gain) is a PD - Controller.
  • The oscillations generated by the P gain are dampened by the D gain.
  • There's a maximum dampening that can be achieved using the D gain.
  • Here's a video of the self driving car steering on a PD - Controller. PD - Controller

PID - Controller

  • A PID - Controller has three gains - proportional, derivative and integral (PID).
  • The I gain is required to remove any residual error introduced by the P gain.
  • It overcomes systematic bias which could generate large errors.
  • Introducing the I gain ensures the self driving car always stays on track.

Choosing the gains

  • The P, I, D gains are determined using multiple runs of the Twiddle algorithm.
  • The Twiddle algorithm pushes each of the gains up or down by a delta.
  • Each time the gains are modified we calculate an error for a specific number of self driving car movements.
  • Depending on how good or bad this error is, the gain deltas are either increased or decreased.

pidcontrol's People

Contributors

chai-nadig 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.