P.I.D TUNNING-CALIBRATION
How to setup your multicopter
The Basics
If you’re a super nerd and you understand advanced math concepts, you can learn all about PID by finding a class about control theory. But for the rest of us, there’s no point even trying to fully understand PID because you’ll spend more time learning new math than actually learning how to tune a quadcopter.
What Is PID for a Quadcopter?
PID is a function in flight controllers. It reads the data from sensors, and tells the motors how fast they need to spin. Ultimately this is how to stability is achieved on a quadcopter. PID stands for proportional-integral-derivative. PID controller is a closed-loop control system that tries to get the actual result closer to the desired result by adjusting the input. The error is fed back to the beginning, and the same process repeats.
HERE YOU CAN SEE A VIDEO EXAMPLE OF DIFFERENT SETTINGS
The Effect Of Each Parameter
P Gain
P is the main value you worry about, which determines the stability and handling. You can actually leave I and D values at 0 and your aircraft will still fly.
The higher P gain, the harder it tries to stabilize the copter. Generally speaking, high P gain means sharper control while low P gain means softer control. But if P is too high, the quadcopter becomes too sensitive and over-correct itself. Eventually it will cause overshoots, and you will have high frequency oscillations.
I Gain
This coefficient influences the precision of angular position. Higher I gain is especially beneficial in windy environment. With low I gain your quadcopter will simply drift away with the wind because it won’t hold the angle.
When I value gets too high your quadcopter might start to feel stiff and doesn’t respond to your stick that well. It’s similar to having a slower reaction and a decrease effect of the Proportional gain. In more extreme cases with excess I gain, the copter might even oscillate in a lower frequency.
D Gain
D gain works as a dampener and reduces the over-correcting and overshoots caused by P term. It makes your quad fly smoother and potentially can minimize propwash oscillations as well.
However excessive D value can introduce vibration in your quadcopter because it amplifies the noise in the system. In the attempt to make your quadcopter fly smoother it will tell the motors to spin faster or slower in a very fast rate that the motor cannot keep up, and eventually cause motor overheat.
How to tune quadcopter PID Gains
- Always tune your quad in Rate Mode (aka Acro Mode)
- Make sure your quadcopter’s CG (centre of gravity) is right in the middle, CG has a significant effect on how good your quad can fly, and can be tuned
- It is a matter of trial and error
Before Tunning
There is no right or wrong way of tuning PID, whatever works for you is the right way.
Every time when you adjust PID, you should ask yourself: “is it getting better or worse?” Find the point where it has the best flight characteristics before it goes down hill again.