{"id":1730,"date":"2023-11-19T11:59:06","date_gmt":"2023-11-19T10:59:06","guid":{"rendered":"http:\/\/domotics.fr\/?p=1730"},"modified":"2023-11-19T11:59:06","modified_gmt":"2023-11-19T10:59:06","slug":"drone-reglages-des-pid","status":"publish","type":"post","link":"https:\/\/domotics.fr\/index.php\/2023\/11\/19\/drone-reglages-des-pid\/","title":{"rendered":"Drone r\u00e9glages des PID"},"content":{"rendered":"\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1WxgSUsG6UnvXjyxJSsAdw9iqoO21Ddmq\/view\">https:\/\/drive.google.com\/file\/d\/1WxgSUsG6UnvXjyxJSsAdw9iqoO21Ddmq\/view<\/a><\/p>\n\n\n\n<p>Your quad is controlled by what is known as a PID loop. As we are doing flips and rolls we are changing<br>the \u201cCommand\u201d (what we know as the Setpoint in the quad world [a.k.a. the sticks]), causing the PID loop<br>to react. The goal of tuning is to tweak the PID loop so that it achieves the fastest response to commands<br>possible, without overshooting\/oscillating. These Principles apply for ALL PID CONTROLLERS! ANY flight<br>firmware and ANY quad copter class. The guide and videos focus on Betaflight because it is the most<br>widely used firmware in the hobby for freestyle and racing. But the same principles apply to: FalcoX, KISS,<br>iNAV, Cleanflight, EmuFlight, Baseflight, etc. They all use a PID controller!<br>In this example, \u201cCommand\u201d goes<br>from 0 to 110% at time zero. The<br>PID loop then reacts to move the<br>machine &#8211; in our case the quad &#8211; to<br>the new value. The Command line<br>is our sticks. The red, green, and<br>yellow lines are different gyro<br>(quad movement) responses based<br>on different PID tunes.<br>You want a tune that produces a<br>\u201cCritically damped\u201d response<br>(measured by the gyro feedback to<br>the PID loop).<br>Tuning your quad copter is an easy process involving the below 4 key steps. It only takes 1 or 2 packs. It<br>can be done Line-of-Sight (LOS), with FPV goggles, or using Blackbox. I use Blackbox a lot because it helps<br>to understand what is happening (to explain it) and also it gives the most precision in tuning, but it is NOT<br>necessary to use blackbox to tune your quad.<br>The steps are outlined in more detail below. Steps #1 thru #3 are critical for good general flight<br>performance, including:<br>\uf0b7 good prop wash handling;<br>\uf0b7 no wobbles or oscillations;<br>\uf0b7 no \u201cthrobbles\u201d (bobble of the nose on<br>throttle punches);<\/p>\n\n\n\n<p>\uf0b7 good reaction to wind<br>\uf0b7 tight stick tracking (direct feel).<\/p>\n\n\n\n<p>Step #1 \u2013 Tune your Filters \u2013 The PID controller can\u2019t work well if it\u2019s fighting vibrations in the gyro signal<br>Step #2 \u2013 Tune \u2018P\/D Balance\u2019 \u2013 Every quad has a specific P\/D Balance that we need to find<br>Step #3 \u2013 Tune \u2018PD Gain\u2019 gain \u2013 increases the speed of the influence (force) the PID gains exert on the<\/p>\n\n\n\n<p>motors<\/p>\n\n\n\n<p>Step #4 \u2013 Tune FeedForward (\u201cFF\u201d) \u2013 Adding a fourth control term to reduce the inherent latency in a<\/p>\n\n\n\n<p>standard PID controller<\/p>\n\n\n\n<p>Page 2 of 8<\/p>\n\n\n\n<p>Step #1 \u2013 Tune your Filters:<br>a) Setup your quad using the new RPM filters. See Betaflight 4.1 Filter Setup &#8211; RPM Notches are the<br>Future! for details on that process. The advantage of RPM filters \u2013 FOR ANY QUAD CLASS \u2013 is twofold:<br>1) the RPM filters more accurately track and crush motor peak noise. 2) it frees up the Dynamic Notch<br>to look for and track frame resonance or other peaks of noise (antennas vibrating, frame cracked,<br>etc\u2026) and crush it out. Once RPM filters are setup per the video (with the Dynamic Notch<br>adjustments) move on to Step b).<br>b) Work up the lowpass filter sliders TOGETHER at the top of the Filters tab to try to get to a 1.5 or 2.0.<br>With the other settings (as outlined in the video above) this will result in a reasonable balance of filter<br>delay savings vs. not going too low and under filtering your quad. MILEAGE HERE WILL VARY! So do<br>it slowly moving up one or two steps at a time with full throttle \/ hard move flights in-between.<\/p>\n\n\n\n<p>CHECK YOUR MOTOR TEMPS as you move up the sliders. Listen for excessive noise (grinding) sounds<br>on the motors at idle or during flight. Do prop wash turns and sharp moves. See if things are getting<br>better or worse as you move up the sliders. If better, move them up some more. If worse, stop and<br>move back one position. It is possible that motor will not be hot, but flight performance can get worse<br>with higher filters (noise to signal ratio gets too high on D-term). Use your senses and perception on<br>if prop wash is getting better or worse as you move up the sliders.<br>OPTIONAL: Do a blackbox log with the following settings in the BlackBox tab:<br>Do a full throttle and hard moves flight. Do NOT hit stuff and avoid any<br>ground bouncing at the beginning or ending of the flight (not critical, but<br>can throw analytical tools off if not trimmed out). Look at a spectrum of the<br>Gyro signal and D-term signal. Make sure all peaks of noise are completely<br>crushed out in the gyro signal spectrum and that the D-term signal doesn\u2019t<br>have excessive noise between 100hz and 200hz.<br>For a video guide on the flight and looking at logs to tune up your filters, see:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>PID Tuning Principles: Step #1 &#8211; Filters Tuning (guide on getting the raw noise log)<\/li><li>PID Tuning Principles: Step #1 Follow-up &#8211; Finalize YOUR Filters (how to customize your filters)<br>For the basics on filters OR an in-depth understanding of how filters work and what \u201cphase delay\u201d is, see<br>my Filter Fundamentals series.<br>In general, you want to use Gyro filters to crush out any motor peaks of high frequency vibrations<br>(\u201cnoise\u201d). Then use the D-term filtering to tame the D-term property of doubling gain response to<\/li><\/ol>\n\n\n\n<p>noise as the noise doubles in frequency. Meaning, higher frequency noise (100hz+) drives the D-<br>term to go crazy, resulting in vibrations in smooth flight or HOT motors.<\/p>\n\n\n\n<p>Figure 1: Gyro and D-term (lowpass) Filters sliders in Filters tab<\/p>\n\n\n\n<p>Figure 2: Blackbox Setting in Blackbox Tab<\/p>\n\n\n\n<p>Page 3 of 8<\/p>\n\n\n\n<p>Step #2 \u2013 Tune the \u2018P\/D Balance\u2019:<br>Paste the below into the CLI tab in BF. This will<br>turn off all the BetaFlight advance PID control<br>features; features that push the PID controller<br>beyond basic fundamentals. Once pasted, do a<br>flight with lots of flips and rolls (Line-of-Sight or<br>FPV), sharp stick inputs back and forth, and keep<br>increasing P-gains until you see sharp bounce-back. For LOS or FPV you really need to listen for it vs. seeing<br>it (it is so fast). It is easy to visualize however in blackbox (BBL). You can set your D-gains to the same<br>number for Pitch and Roll based on the noise floor after your filtering setup in Step #1. This is subjective<br>based on how noisy you want your D-term signal to be to the PID Sum. Best advice is 30\u2019s or 40\u2019s for a 4S<br>5-in quad. For 6S 5-in quad could be down in 20\u2019s and 30\u2019s. For a brushless whoop, more like 60\u2019s or 70\u2019s.<br>You want to keep raising P-gains until you start to get overshooting based on sharp stick inputs<br>and then back it down a little to get the \u201cCritically damped\u201d stepped response (see Figure 7).<br>Again, it is easiest to listen for it LOS or FPV. To see it check out a BBL.<br>For a video guide on this step, and what to look for in blackbox, see:<br>PID Tuning Principles: Step #2 &#8211; Tune the PID Controller (P\/D Ratio)<br>CLI commands to paste and save before completing Step #2:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">PID Gains Settings<\/h1>\n\n\n\n<p>set d_min_pitch = 0<br>set d_min_roll = 0<br>set f_pitch = 0<br>set f_roll = 0<br>set f_yaw = 0<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">PID Controller Settings<\/h1>\n\n\n\n<p>Set pidsum_limit = 1000<br>set pidsum_limit_yaw = 1000<br>set feedforward_transition = 0<br>set abs_control_gain = 0<br>set use_integrated_yaw = OFF<br>set iterm_relax_cutoff = 10<br>save<br>Once you have found the proper P vs.<br>D ratio (Balance) you can re-enable<br>the PID tuning Sliders and move them<br>around (between \u201cMaster Multiplier\u201d<br>and \u201cPD Balance\u201d) to get close to the<br>numbers you had set manually. NOT<br>all quad classes will be covered by the<br>sliders extent. So if you are tuning a whoop, toothpick, or 10-inch they may not be flexible enough to suit<br>your needs. Betaflight defaults and slider extents were design around a 6S &#8211; 5\u201d quad.<br>As we are doing the flips, rolls, and half rate moves (as show in the above video) we are drawing out the<br>Stepped Response in the PID controller. THIS IS HOW YOU TUN A PID CONTROLLER; period! See Figure 5<br>for how the different terms impact the quads performance and Figure 7 for a description of what a<br>\u201cCritically damped\u201d Stepped Reponses looks like.<\/p>\n\n\n\n<p>Figure 3: PD Balance in PIDs tab<\/p>\n\n\n\n<p>Figure 4: Enable Sliders button on PIDs tab<\/p>\n\n\n\n<p>Page 4 of 8<\/p>\n\n\n\n<p>A Deeper understanding of Stepped Response tuning:<br>Figure 5 below, shows a summary for what increasing one term will do when keeping the other two<br>constant. For example looking at the top row in the table, holding I-term and D-term constant and<br>Increasing P-term will:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Decrease Rise Time (speed of quad moving to match the stick commands);<\/li><li>Increase Overshoot (if excessive);<\/li><li>Small Increase of Settling Time (if excessive);<\/li><li>Decrease Steady-State Error (when optimal);<\/li><li>Degrade Stability (if excessive).<br>THE KEY is to have the right balance of P and D term to get a \u201cCritically damped\u201d Stepped Response<br>(see Figure 7). The CLI paste in Step #2 above helps us isolate P &amp; D gains to find the perfect balance!<\/li><\/ol>\n\n\n\n<p>Effects of Independent P, I, D, and FF tuning<\/p>\n\n\n\n<p>PID Term to Change Rise Time Overshoot Settling Time Steady-State Error Stability<br>Increasing P-term Decrease Increase Small Increase Decrease Degrade<br>Increasing I-Term Small Increase Increase Increase Large Decrease Degrade<br>Increasing Dmax-term* Small Increase Decrease Small Decrease No Impact Small Improve<br>Increasing Dmin-term* Increase Decrease Decrease Minor Change Improve<br>Increasing FF-term Large Decrease Minor Increase No Impact Can Increase** No Impact<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>when D_min is enabled, it is the D-term in the PID controller. Only on sharp inputs does the active D-gain go to Dmax. See \u201cFF<br>induced overshoot:\u201d in Step #4 for more details.<br>** through unstable RX signal (Cross Fire, R9 and all FrSky rx\u2019s)<br>Figure 5: Effect of PID changes (source: http:\/\/eprints.gla.ac.uk\/3815\/1\/IEEE_CS_PID_01580152.pdf)<\/li><\/ul>\n\n\n\n<p>Figure 7 outlines the above terms. As we are doing flips and rolls we are<br>changing the \u201cCommand\u201d (what we know as the Setpoint in the quad world<br>[a.k.a. the sticks]), causing the PID loop to react so we can see how it manages<br>the change (the Stepped change Response). We want to do this with both full<br>rate and half rate moves to see how it manages these two things to optimize<br>the tune.<br>Again, the CLI paste helps us to isolate the P and D terms (turns off FF and<br>getting I-term out of the way) so we can adjust P-term to determine the<br>optimal P\/D Balance (ratio); looking for the \u201cCritically Damped\u201d PID response.<br>This means the highest P\/D Balance possible without overshoot!<\/p>\n\n\n\n<p>Figure 7: Stepped Response diagram.<\/p>\n\n\n\n<p>Figure 6: Analog of PID terms<\/p>\n\n\n\n<p>In this example, \u201cCommand\u201d goes<br>from 0 to 110% at time zero. The PID<br>loop then reacts to move the machine<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>in our case the quad &#8211; to the new<br>value. The Command line is our sticks.<br>The red, green, and yellow lines are<br>different gyro (quad movement)<br>responses based on different PID<br>tunes.<br>You want a tune that produces a<br>\u201cCritically damped\u201d quad movement<br>response (measured by the gyro<br>feedback to the PID loop).<\/li><\/ul>\n\n\n\n<p>The Goal PID<br>Response<\/p>\n\n\n\n<p>Think of the PID<br>controller like a<br>strut on your car.<\/p>\n\n\n\n<p>Page 5 of 8<\/p>\n\n\n\n<p>Step #3 \u2013 Tune \u2018PD Gain\u2019 gain:<br>With the \u201cP\/D Balance\u201d for your specific rig figured out WE NEVER WANT TO DO ANYTHING TO CHANGE<br>THAT as we increase gains or reintroduce the advance PID controller parameters (FF, D_min, etc\u2026). The<br>PID sliders are built with that fundamental in<br>mind and are there to help speed things up. With<\/p>\n\n\n\n<p>this understood, this step is to increase both P-<br>gains and D-gains TOGETHER to get better prop<\/p>\n\n\n\n<p>wash handling and closer tracking to the stick<br>inputs (Setpoint).<br>\u201cP\/D Balance\u201d = P-gain \u00f7 D-gain.<br>e.g.: 60 (P-gain) \/ 35 (D-gain) = 1.71 (P\/D Balance)<br>In the above example we have a 1.71 P\/D Balance ratio. Therefore, if you increase D-gain from 35 to 40,<br>you need to increase P-gain from 60 to 68 (40 (new D-gain) x 1.71 = 68 (new P-gain)). If you use the P and D Gain<br>slider to move up the terms, it holds the PD Balance automatically.<br>Do prop wash inducing moves (180 turns or split-S moves). Push up your P and D gains to reduce<br>prop wash. As you are moving up P and D gains, you will get to a point where the higher D-gains could<br>start to cause motor heat or vibrations in smooth forward flight (typically gains of 40 to 60 on a 4s 5-inch<br>OR 30 to 40 on a 6s 5-inch). Also, you will hit a point where prop wash will not get better. This point is<br>called \u201cmotor saturation\u201d and is due to motor\/prop mechanical limitations. You can see this in flight just<br>by things not getting any better or by looking at the Motor Command traces in a blackbox log (they hit<br>100% for 1 or 2ms). THIS IS THE POINT YOU WANT TO BE AT for the best tune you can have on your quads<br>specific mechanical setup. The ONLY way to improve prop wash handling from this point is making<br>mechanical changes. The cheapest way is finding the best (lightest) props to match your motors(not under<br>or over propped), your desired response curve\/feel, and your durability preference. So if you can\u2019t shake<br>that last big of prop wash to your desired liking and you have followed these practices to a tee, it is a<br>mechanical limitation; not the firmware.<\/p>\n\n\n\n<p>Figure 8: P and D Gain slider in PIDs tab<\/p>\n\n\n\n<p>Page 6 of 8<\/p>\n\n\n\n<p>Step #4 \u2013 Tune FeedForward (\u201cFF\u201d):<br>Step #4 is ONLY important if you want to sharpen up stick responsiveness (typically for racing). Maybe<br>freestyle pilots like FF = 0 for smoother feel.<br>Once you have the P and D gain strengthsto a point<br>where you are getting motor saturation when<br>trying to induce prop wash, you can still push the<br>PID controller further with Betaflight\u2019s advanced<br>PID controller features. FeedForward (\u201cFF\u201d) will<br>provide an additional push (alongside P-term) to<br>get the quad moving for sharp stick commands. FF-terms are based on the speed of your stick moves; like<br>the mouse accelerator on your PC or Mac. FF is similar to a D-gain, except it is based on the sticks (not the<br>gyro like the D-term) and pushes the quad (instead of dampens like the D-term). FF is mostly about feel,<br>so increase as you see fit (or don\u2019t) to get the desired feel.<br>DON\u2019T BE AFRAID TO USE HIGH FF GAINS (300+)! In my experience, a 4S &#8211; 650g &#8211; 5\u201d quad may need FF<br>gains as high as 300 to have the Gyro completely track the Setpoint for rates that top out at 1020 deg\/sec.<br>For a video guide on this step, see:<br>PID Tuning Principles: Step #4 &#8211; Tuning FeedForward and D_min to Track Setpoint<br>FF induced overshoot: As you increase FF-gains, the quad may start to get some minor overshooting.<br>This is much less of an issue in BF 4.1+ than ever before because some code was added to detect and shut<br>off the pushing of FF as it saw it was<br>approaching the target. However, if<\/p>\n\n\n\n<p>you do have some overshooting, re-<br>enabling D_min can address the<\/p>\n\n\n\n<p>overshooting by the added push of FF.<br>Once D_min is activated the \u201cD_min\u201d column adds to the<br>PID gains grid (Figure 10). The D_min column is now<br>your base D-gains in normal forward flight! The quad<br>will spend most of the time flying at the D_min value.<br>The \u201cDerivative\u201d column is the boosted D-gains in sharp stick input and during prop wash (aka \u201cD_max\u201d).<br>A typical D_max setting that addresses any FF overshooting is approximately equal to your P-gains. If<br>you are using the sliders, they automatically keep an appropriate ratio.<br>A deeper understanding of D_min:<br>Once you activate D_min, the quad will fly with D = D_min. If the quad needs more D-gain due to sharp<br>moves, prop wash, etc, it will ramp up to D_max (the value in \u00ab\u00a0Derivative\u00a0\u00bb column) in order to combat the<br>move \/ induced error. D_min boosts the active D-gains during prop wash detection as well. You can raise<br>the \u201cD_min Gain\u201d value (shown as \u201c27\u201d in Figure 10) to increase the sensitivity of prop wash detection.<br>Default is 27 but you can increase as high as 50 to make D_min raise the active D-gains sooner and stay<br>higher longer. However, this will increase Rise Time for stick moves as the active D-gain will boost sooner<br>in sharp stick moves. See the below videos for more on the D_min feature:<br>D_min Details and use for Noisy rigs to reduce filtering: https:\/\/youtu.be\/n8iwIcJSuWs<br>D_min as \u201cD_Boost\u201d for a high performance tune (what we want): https:\/\/youtu.be\/RtsQwGVTHg4<br>Figure 9: Stick Response Gain slider (FF slider) in PIDs tab<\/p>\n\n\n\n<p>Figure 10: D_min Activation<br>IMPORTANT:<br>With D_min active, these<br>are base D-gains NOW.<\/p>\n\n\n\n<p>D-max Gains (boosted<br>gain values on sharp<br>moves and in prop wash.)<\/p>\n\n\n\n<p>Page 7 of 8<br>Once you are all done, you should have a tune that the Gyro<br>completely tracks the sticks (the most DIRECT feel possible) and<br>combats prop wash, wind, wobble, bobbles, etc\u2026 up to your quad\u2019s<br>mechanical limits.<br>Step #5 \u2013 Yaw tuning: yaw is a very slow axis to respond to stick commands (Setpoint) when<br>compared to roll or pitch. Most of the influence for yaw is through motor\/prop inertia shifts (2 motors<br>speed up and 2 slow down). Therefore, it typically doesn\u2019t overshoot Setpoint and hence D-gains in BF for<br>yaw are defaulted to 0 negating the D-term opposition to P-gains on yaw (but is a gain you can adjust if<\/p>\n\n\n\n<p>desired). To increase the initial push of yaw, like other axis\u2019s, increase your P-gains. If you add in Yaw D-<br>gain, it will oppose that push requiring higher P-gains. This will give yaw an initial jump to get things<\/p>\n\n\n\n<p>moving. However, since so slow to react, yaw requires a much higher I-gain to keep it tracking Setpoint.<br>Like with I-term tuning in Step #6, it is best to tune yaw through blackbox and looking at how well the yaw<br>axis gyro reading is tracking the yaw axis Setpoint as you do sharp yaw moves. Then apply the principles<br>of Step #2 to the yaw axis. I find you need a HIGH P-gain and I-gain on yaw (P = 80 \/ 90 and default I-gains).<br>For a video guide on this step, see: PID Tuning Principles: Step #5 &#8211; Yaw Axis Tuning<\/p>\n\n\n\n<p>Note in BF 4.0+, the Yaw I-gains are multiplied by 2.5 in the code to give an even higher I-<br>gain control on Yaw. So in earlier versions of BF (3.5 and lower) Yaw I-gains are way too<\/p>\n\n\n\n<p>low.<br>Integrated Yaw feature in BF 4.0: If activated this changes the advice above. Note the<br>paste in Step #2 disables Integrated Yaw for the time being until this new yaw tuning<br>approach can be vetted (with Absolute Control) and this guide can be updated. If you want<br>to play, knock yourself out. If you want to keep it simple, keep Integrated Yaw disabled.<br>Step #6 \u2013 I-term tuning: With the addition of the i-Term Relax feature in BF, you can run very high<\/p>\n\n\n\n<p>I-gains without negative ramifications. The best way to tune I-term is through feel or blackbox. Higher I-<br>gains will make the quad track the Setpoint more accurately in sweeping turns. It will also make your quad<\/p>\n\n\n\n<p>feel a little stiffer for entering sharp moves. In the end, it is not that touchy of a term\/gain. So the best<br>way is to get everything else set and then get a backbox log and see how well the quad is tracking the<br>Setpoint through sweeping moves\/turns.<br>If the Gyro trace seems to run high or low of the Setpoint for an extended period of time, you need higher<br>I-gains. If you have very, very slow bouncing of the Gyro trace above and below the Setpoint trace, that<br>means your I-term is too high (this would be very rare and require I-gains of 100+ in most cases \u2013 look for<br>a 4-leaf clover that day and play the PowerBall!). In most cases, quads fall within the large window for<br>decent I-gains set by the Defaults so typically little focus is placed on I-term tuning. But generally racers<br>want higher I-gains for better tracking in broad and tight turns so try raising them up a bunch (20 or 30)<br>and see how you like it for around the track. If you like a more loose feel for free style, try lower I-gains<br>and maybe even FF = 0 for smoother molasses HD footage.<\/p>\n\n\n\n<p>Page 8 of 8<\/p>\n\n\n\n<p>DEFINITIONS:<br>\u00ab\u00a0Overshoot\u00a0\u00bb: is when you induce a change the desired roll, pitch or yaw rotation rate and the quad<br>moves to match your new commanded rate (in deg\/sec) but overshoots the target. This<br>is also known as \u201cbounceback\u201d when referred to as motion seen in the FPV feed, LOS, or<br>in blackbox logs at the end of sharp flip or roll. So the term \u201cbounceback\u201d is the quad<br>overshooting the commanded change in motion and hence has to \u201cbounce back\u201d to the<br>commanded rate. Looking at Figure 7 above, overshoot is a sign of an \u201cUnderdamped\u201d<br>PID controller; not a good PID tune.<\/p>\n\n\n\n<p>\u00ab\u00a0Bounceback\u00a0\u00bb: is the quad doing a small shutter (or shake) at the end of a sharp flip or roll. You can see<br>bounceback in your FPV feed, HD footage or blackbox log. It is typically the quad going<br>past the desired roll or flip rate (Setpoint) and bouncing back to the Setpoint. Looking at<br>Figure 7 above, bounceback is a sign of an \u201cUnderdamped\u201d PID controller; not a good PID<br>tune.<\/p>\n\n\n\n<p>If the Bounceback is fast:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If the quad seems to go past the Setpoint and bounce back to the Setpoint, that means<br>your P\/D Balance is too high. Either increase D-term or reduce P-term.<\/li><li>If the quad seems to stop short of the Setpoint and then bounce further to hit the<br>Setpoint (rare), that means your P\/D Balance is too low (see Figure 7 \u2013 Overdamped<br>condition). Either reduce D-term or increase P-term.<br>If the Bounceback is slow:<\/li><li>That is I-term windup causing the I-term to drag the quad past (or stop short) of the<br>Setpoint and then it slowly adjusts back (or forward) to the Setpoint. HOWEVER, with<br>the CLI paste in Step #2 above, setting the \u2018i-Term Relax\u2019 feature to a cutoff of \u201c10\u201d<br>will prevent I-term windup from dragging the quad past the Setpoint. For more on<br>the i-Term Relax feature, see: https:\/\/youtu.be\/QfiGTG5LfCk<\/li><\/ul>\n\n\n\n<p>\u00ab\u00a0Setpoint\u00a0\u00bb: is what you are telling the quad to do. For example: when you do a sharp roll, the Setpoint<br>ramps from a rotation rate of 0 degrees\/second roll rate to what you have your max roll<br>rate set to in the Rates tab. We tell the quad the roll, pitch and yaw rates with our TX<br>sticks (the rest is just throttle amount) and the PID loop controls the quad getting to and<br>sustaining the commanded rates (Setpoint). You can see how close you are tracking to<br>Setpoint through feel experience (lots of it) or more simply through looking at a blackbox<br>log.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/drive.google.com\/file\/d\/1WxgSUsG6UnvXjyxJSsAdw9iqoO21Ddmq\/view Your quad is controlled by what is known as a PID loop. As we are doing flips and rolls we are changingthe \u201cCommand\u201d (what we know as the Setpoint in the quad world [a.k.a. the sticks]), causing the PID loopto react. The goal of tuning is to tweak the PID loop so that it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1730","post","type-post","status-publish","format-standard","hentry","category-non-classe","entry"],"_links":{"self":[{"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/posts\/1730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1730"}],"version-history":[{"count":1,"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/posts\/1730\/revisions"}],"predecessor-version":[{"id":2507,"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/posts\/1730\/revisions\/2507"}],"wp:attachment":[{"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/categories?post=1730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/domotics.fr\/index.php\/wp-json\/wp\/v2\/tags?post=1730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}