After a lengthly discussion with my local flying group about how PID's work and what they stand for, I thought I would share it with the larger community. I found that when tuning a multirotor it helps a great deal if you know some basic theory behind the settings that you are adjusting.
To start PID stands for Proportional Integral Derivative. I will cover each of these in this article. For this explanation I will keep things simple and use the example of one car following another car on the road.
Lets assume you are driving down the road and trying to keep a set distance behind the car in front of you, lets refer to that distance as X from here on.
P is for Proportional

If you are following the car at X distance and you start to get further away from it, you proportionally accelerate to close the gap back to X. If you accelerate too much you will over shoot X, making the distance now smaller than X so you need to slow down in order to get back to X. If you slow down too much you will pass X again and will need to accelerate to get back to X. This will continue if your proportional acceleration is not correct, this is the oscillation you see while tuning a multirotor.
The original kk boards only had a P value to tune with and if tuned correctly they flew well .
In multirotor terms:
The Proportional value controls how much effort is applied to correct for a outside force acting upon your multirotor.
I is for Integral

The integral helps you regain the X distance again and maintain it a lot more accurately. The integral in our example would be you returning to exactly X distance and maintaining it a lot smoother than just proportionally accelerating and decelerating.
In multirotor terms:
If your multirotor is at X degrees and the wind blows the integral will try return the craft to X degrees where as if you only had proportional it would only compensate with a proportional response and never actually hit the X degrees perfectly. The integral is not perfect and it will slowly drift off of the X degree mark .
D is for Derivative

The derivative is used to eliminate an accumulated error on the integral. In our example this would be you noticing X distance growing ever so slightly and preventing the gap from getting any bigger.
In multirotor terms:
The derivative further prevents drift of the X degrees mark. The derivative is only found on a few controllers like CC3D and APM, and is not entirely necessary because multirotors are always moving around. It does help keep the craft stable on long straight flights .
I hope this helps with future tuning of your multi's.
Written by Jamiedco
Animations by James Bihl
0 comments