28.1 C
New York
Sunday, June 30, 2024

How one can Tune FPV Drone Filters and PID utilizing Blackbox Logs (PIDToolBox and Blackbox Explorer Information)


On this tutorial I’ll share how I take advantage of Blackbox logs to tune filters and PID on a Betaflight FPV Drone. I will likely be utilizing PIDToolBox as the first instrument for filter and PID tuning, with Blackbox Explorer because the secondary instrument for Feedforward and normal troubleshooting.

A few of the hyperlinks on this web page are affiliate hyperlinks. I obtain a fee (at no further price to you) for those who make a purchase order after clicking on one in every of these affiliate hyperlinks. This helps assist the free content material for the group on this web site. Please learn our Affiliate Hyperlink Coverage for extra data.

Disclaimer: This information is supposed for informational functions solely. The creator holds no accountability for damages ensuing from actions taken by the readers.

Blackbox shouldn’t be a should with regards to tuning as defined on this information, however Blackbox offers you the total perception into what’s actually happening with the drone and means that you can unleash its full potential. Issues like noise filtering and tiny overshoots you’ll be able to solely see in Blackbox. In case you are a perfectionist or simply somebody who prefer to tinker, that is going to be the tutorial for you.

In case you are new to Blackbox, be certain to take a look at the Blackbox for newcomers tutorial.


Getting Began

Tuning objectives

Utilizing Blackbox to tune our FPV drone, we need to obtain two predominant objectives:

  • More practical use of filters: use as little filtering as doable to reduce delay, however simply sufficient to maintain the noise all the way down to an appropriate degree
  • Optimized PID features and associated settings to get our drone to fly extra exactly and responsively

Fundamental configurations

0. {Hardware} Guidelines

  • Select an FC stack that comes with rubber grommets (aka gummies), smooth mounting is nice for each sturdiness and noise efficiency (vibration dampening).
  • Use metallic screws for the FC stack, keep away from nylon/plastic screws/standoffs/spacers as they’re simple to interrupt and extra more likely to create vibrations. In case you want spacers, use the smooth silicone ones. Utilizing lighter titanium screws can save a couple of grams (see publish).
  • Locking the stack screws firmly in place with a metallic nut earlier than mounting the 4in1 ESC. In case your body have pressed insert nuts then there’s no want so as to add one other nut. This may stop the stack screws from wiggling and creating vibrations. Tighten them by hand first, then give a last squeeze with the wrench/screwdriver.

How To Build Fpv Drone 2023 Stack Screws

To safe the entire FC stack, you need to use 4 plastic nuts. Tighten the nuts by hand, in order that the gummies are usually not excessively crushed, this permits the soft-mount to work successfully.

How To Build Fpv Drone 2023 Fc Stack Nuts

1. Blackbox Recording Settings

Choose the next settings within the BlackBox tab:

  • Onboard Flash or SD Card
  • Since we’re tuning filters we need to log at 2KHz (or 1.6KH for BMI270 Gyro)
  • Choose “GYRO_SCALED” in debug mode to document unfiltered gyro sign

Betaflight 4.3 Configurator 10.8 Blackbox

2. Disable ADC filter in your OpenTX/EdgeTX radio (System->{Hardware}). This may cut back latency.

Edgetx Hardware Adc Filter Disabled


3. ESC settings:

I’ve a publish explaining the greatest BLHeli32 settings. Right here’s the abstract (for five″ drones):

For BLHeli_32 ESC:

  • Rampup Energy 30%
  • Motor timing 24
  • PWM Frequency: Setting LOW and HIGH to mounted 24KHz or 48KHz. 48KHz is usually the most secure possibility with regards to gyro noise, it makes your quad smoother and simpler to tune. Nevertheless, 24Khz presents higher braking energy which is healthier for prop wash dealing with and resposniveness, however there’s the next danger of vibration.

Blheli 32 Best Settings 2022 Pwm Frequency Rampup Power Motor Timing Blhelisuite32

For BLHeli_S ESC, flashing Bluejay is a should, as a result of it permits bi-directional DShot, which is required for numerous options in Betaflight akin to RPM filter and Dynamic Idle. I’ve a information on find out how to flash it right here: https://oscarliang.com/bluejay-blheli-s/

Bluejay Esc Configurator 24khz


3. Flash the most recent model of Betaflight firmware to your flight controller and go away PID/filter settings at default. Allow Skilled Mode in Betaflight Configurator, this will provide you with all of the accessible sliders and choices on the PID Tuning web page.

Betaflight 4.3 Configurator 10.8 Expert Mode Enabled Pid Tuning Within the Configuration tab, set your PID Loop Frequency, and within the Motor tab, set your ESC protocol:

  • DShot300 for 4KHz or 3.2KHz Loop Frequency
  • DShot600 for 8KHz Loop Frequency

4. Within the Motors tab, allow Bi-directional DShot.

Virtually all trendy ESC assist Bi-directional DShot. I’ve a tutorial on find out how to allow RPM filter. For BLHeli_32 ESC it really works out of the field, however when you have BLHeli_S ESC, you want to flash Bluejay firmware (tutorial) first.

To test if Bi-directional DShot is working correctly, run the motors within the Motors tab (with out propellers!) and see if the error charge (E) stays at 0% . If this isn’t the case, attempt once more with a slower DShot protocol akin to DShot300 and even DShot150. If none of those protocols offer you 0% error, then you definitely would possibly simply need to disable Bi-directional DShot.

After getting Bi-directional DShot enabled, you’ll be able to then allow RPM filter, that is in all probability the most effective filter in Betaflight.


5. Load the suitable RC_Link preset.

Betaflight 4.3 Load Preset Rc Link Expresslrs 500hz Options

Completely different RC hyperlinks require particular RC smoothing and feedforward configurations because of the completely different packet charge and packet interval so as to keep away from issues with Feedforward. My favorite RC hyperlink in the mean time is ExpressLRS, try what radio gear I take advantage of right here.

By loading the acceptable RC_Link preset, Betaflight will apply all the required config for you mechanically. Don’t neglect there are a couple of extra choices to choose earlier than loading the preset, particularly flying type, for most individuals it will be Freestyle.

In case you are utilizing Crossfire, it’s greatest to lock the packet charge to both 50Hz (longer vary however increased latency) or 150Hz (decrease latency however much less vary). You are able to do this within the TBS Agent Lite LUA script.


6. Decrease TPA

Within the PID tuning tab => Fee Profile, set TPA break level to 1750, that is the throttle place when TPA begin to work. We don’t need TPA to masks all of the oscillation points throughout tuning. We’ll tune TPA later if we now have oscillation points at excessive throttle vary.

Betaflight Configurator Tpa Breakpoint


How one can use PIDToolBox and Blackbox Explorer?

I will likely be utilizing each PIDToolBox (PTB) and Blackbox Explorer (BE) in my PID and filter tuning.

PIDToolBox will likely be our predominant instrument, it’s  by far essentially the most highly effective Blackbox instrument accessible. It means that you can examine a number of logs facet by facet on the identical window, so you’ll be able to see the results of the adjustments you made in an occasion. The Step Response instrument is tremendous easy and helpful for tuning PID. One other great point is the unit on the Y axis within the spectral analyzer (in decibel), which permit for extra correct and goal comparisons. PTB additionally tells you the estimated filter delays which is beneficial.

The principle draw back of PTB in my view is pace. It masses fairly a bit slower and it simply isn’t as intuitive to make use of as BE. That’s why I principally use BE if I solely have to take a look at one log, or for normal troubleshooting as a result of it’s simply quicker to make use of. However for noise and filter tuning, PTB is certainly the way in which to go.


Filters Tuning

Additional studying: Study concerning the several types of filter in Betaflight on this tutorial.

{Hardware} performs an enormous half in how a lot filtering is required. For instance, a properly designed body with out unhealthy resonance points, a set of properly balanced propellers, new motors with clean bearing, all contribute to a clear quad that requires little filtering.

Performing flight for noise evaluation

Take off, fly ahead with as little throttle as doable and minimal yaw/pitch/roll stick inputs.

Carry out “throttle sweeps” – slowly ramp up throttle till it reaches 100% over 5-10 seconds. Vibration frequency brought on by the motors can change with throttle degree, this take a look at will present all of the vibrations throughout the entire throttle vary in addition to the place the body resonances are.

Repeat this 2-3 occasions, then land and disarm.

That is what a typical throttle sweep log would appear like (see the underside bar for throttle adjustments).

Betaflight Blackbox Filter Tuning Throttle Sweep

Understanding Gyro Frequency and Delay

Now open the “throttle sweeps” log in Blackbox Explorer, and click on on “Gyro_Scaled” (unfiltered gyro sign) in the proper hand pane. It’s vital to take away the take off and touchdown elements of the log (so these vibrations don’t throw our evaluation off) by urgent the keys “i” and “o”.

Right here’s a breakdown of the uncooked gyro sign frequency graph from a typical 5″ FPV Drone:

  • Below 20Hz: drone flight actions
  • Between 20Hz – 100Hz: propwash and oscillations brought on by suboptimal PID (e.g. trilling brought on by an excessive amount of D acquire), problematic ESC config and unhealthy RC hyperlink associated settings and many others…
  • Between 100Hz – 250Hz: body resonance or free elements
  • Larger than 250Hz: noise from motors and propellers, and harmonics

Betaflight Blackbox Filter Tuning Noise Spectrum Frequency Break Down

All the pieces beneath 20Hz is “good” drone movement reacting to the sticks.

Between 20Hz and 100Hz is the undesired vibrations akin to oscillations and propwash. As a normal rule of thumb, you need to see little exercise on this frequency vary. Having some is regular however an excessive amount of means you might have an oscillation problem that must be addressed. Usually we attempt to keep away from filtering beneath 100Hz as a result of these are actual motions of the drone, that we both need to work with or work towards. Filtering on this low frequency vary can truly make issues worse as a result of it introduces super quantity of latency. Analyzing the spectra beneath 100Hz may give you perception into vibration or mid throttle oscillation points, and the way properly the copter is handing propwash.

We don’t care about something above 1000Hz as these have little impact on our drone, what we need to deal with filtering is the noise between 100Hz and 1000Hz.

Maybe not intuitive, however over-filtering can truly trigger oscillation to point out up as noise within the sub-100Hz spectra. That’s as a result of filtering creates one thing known as section delay. When the quad tries to make a correction to the error, the response is just too late as a result of delay and is definitely counter productive. It makes the error worse and creates a suggestions loop, so the drone begins to oscillate.

That’s why if we use much less filtering, noise points beneath 100Hz can generally truly get higher, as a result of latency is decreased and the quad can react quicker to right PID errors. Utilizing much less filtering additionally means that you can push PID features increased which makes your quad observe setpoint higher and helps fight propwash.

You could find out how a lot delay is added to the Gyro sign as a result of filtering, by plotting Gyro and Gyro_Scaled and measure the hole between them.

Blackbox Log Explorer Gyro Filter Delay

In PTB, it mechanically estimates the delay brought on by gyro filtering and D-term filtering (see prime proper nook of the primary graph in second column).

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Delay

Filter Technique

My normal filter technique is to kill motor noise bands utilizing RPM filter, then crush out body resonances with dynamic notch filters, lastly cut back the ambient noise ground with Gyro and D-term lowpass filters. I will likely be tuning filters on this order:

RPM Filter => Dynamic Notch Filter => Gyro Lowpass => D-term Lowpass

We wish as little filtering as doable to reduce latency, however on the similar time to have sufficient filtering in order that we don’t burn our motors after we are flying house with a bent prop. One can actually play secure and apply extra filtering than wanted, however when over-filtering, the drone would really feel disconnected and gradual to react because of the elevated delay. It makes propwash worse too. So there’s a stability we need to try for.

Aside from checking Blackbox logs, motor temperature is one other helpful willpower in filter tuning. When motors get too scorching is normally an indicator of pushing the filtering too far.

Professional Tip: Scorching motors – how scorching is just too scorching?
As a normal rule of thumb, for those who pinch the motor and might’t preserve your fingers on it various seconds, which means it’s too scorching and you’re in all probability pushing your setting too aggressively.

How Clear is Your Construct?

Earlier than we start, you would possibly need to test when you have a clear construct. Carry out throttle sweeps as earlier described.

Load the log in PIDToolBox, click on Spectral Analyzer. Choose simply “Gyro prefilt” (the uncooked unfiltered gyro sign, “Gyro” is the filtered sign), and hit Run.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Prefiltered Gyro Dip The default filter settings in Betaflight are pretty conservative, most builds ought to be capable to cut back filtering from there. In case your quad is already noisy with default filter settings, as a substitute of accelerating filtering you need to search for doable mechanical/electrical points. Use capacitor on the ESC enter energy, be certain all screws are tightened up, use recent new props and many others.

On a clear 5″ quad, there ought to be little exercise between ~50Hz (the quad’s actions) and ~200Hz (motor vibration). In case you have various noise on this area, it may very well be electrical noise (maybe gyro enter energy is just too noisy, or it requires further capacitor on the ESC enter energy), or possibly mechanical (e.g. a wire is hitting the gyro). It might be more durable to get optimum filtering on this situation.

As steered by the creator of PIDToolBox, it’s preferrred to have the general noise ground beneath -30dB above 50Hz. For D time period, it’s preferrred to have the general noise ground beneath -10dB. From trying on the noise degree in these areas can actually inform how clean your quad flies. The noise degree has to do with how properly the drone is constructed, how good the {hardware} high quality is, and generally you would possibly simply have a loud Gyro.

In case your quad is noisier than this (e.g. there’s a peak within the center above 0dB), then you have to extra filtering. It’s not the tip of the world, it simply means the latency will likely be increased and also you received’t be capable to push PID features as excessive.

Tuning RPM filter

Motor noise is the principle supply of noise for FPV drones, and RPM filter is likely one of the handiest filters in Betaflight for tackling motor noise. On a clear construct, RPM filter and Dynamic Notch filters will likely be doing many of the work, and we are able to disable many different filters to reduce latency.

Let’s take a look at some examples of motor noise:

  1. Load the “Throttle Sweeps” log in PTB, click on Spectral Analyzer and click on “Freq x Throttle“.
  2. Below “Presets” choose “Gyro Prefilt, Gyro, Dterm Prefilt, Dterm” and hit Run. That is what I name “warmth maps”.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Freq Throttle Heatmap

Let me clarify what we’re taking a look at right here:

  • Near 0Hz, the very shiny horizontal line on the backside (1) is the drone’s movement reacting to the sticks.
  • Round 200Hz, the horizontal line (2) is the body resonance. Its frequency doesn’t change regardless the throttle place, nevertheless it’s the strongest the place it intersects with motor band.
  • The diagonal line (3) is the basic motor noise band, normally the brightest, motor noise sometimes will increase in frequency with throttle degree.
  • There are sometimes harmonics at multiples of the basic motor noise band. In our instance, (4) and (5) are the motor noise band harmonics, they are usually dimmer, generally laborious to identify. Attempt adjusting the dimensions and see in the event that they present up extra clearly.
  • Notice that 2-blade propellers have a tendency to point out extra and stronger harmonics than 3-blade props.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Freq Throttle Motor Band Harmonics Frame Resonance

We’ll use RPM filter to care for these motor noise bands.

Tuning RPM filter principally means to optimize the variety of RPM harmonics used and set the best doable “Min Frequency” primarily based on the beginning frequency of the motor band.

Fewer RPM harmonics and Larger min freq = much less filtering and fewer latency.

Click on the “Information Cursor” instrument, and click on on the place the motor band begins, it would let you know the precise frequency. Affirm in roll/pitch/yaw graphs, and take the bottom frequency.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Freqxthrottle Motor Bands Min Freq

Right here’s an instance of me tuning my new Supply One V5 construct:

  • On the left, is the default RPM filter: 3 Harmonics with min frequency of 100Hz
  • On the proper, 2 Harmonics with min frequency of 160Hz

By lowering one harmonics and lift the cutoff frequency, you’ll be able to maybe see extra unfiltered noise from the third motor harmonics.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Freq Throttle Rpm Sourceone V5

Though it’s fairly weak, it will probably nonetheless get amplified when it will get into D time period. Let’s test the Dterm warmth map beneath on the proper, as you’ll be able to see, a tiny little bit of gyro noise has develop into fairly unhealthy Dterm noise.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Rpm Dterm Noise Sourceone V5

On this instance, it’s in all probability higher to have 3 harmonics in RPM filter.

The opposite factor you may need seen is a few noise round 116Hz left unfiltered as a result of we raised the min freq to 160Hz. To deal with that, we now have to decrease Min Freq, i.e. round 20Hz beneath the noise frequency could be preferrred.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Rpm Min Freq Data Cursor

Right here’s a comparability of gyro sign after filtering utilizing 3 completely different settings:

  • left: 2 harmonics 160Hz min freq
  • mid: 3 harmonics 130Hz min freq
  • proper: 3 harmonics 100Hz min freq

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Rpm Min Freq Comparison

To crush out the motor bands, it appears we are able to’t actually cut back RPM filter from the default on this case. The default 3 harmonics and 100Hz min freq works the most effective for us on this instance.

RPM Crossfading

This superior characteristic fades within the RPM filter power over a variety (type of like TPA), the default is sweet for many 5″ builds however it may be optimized particularly for bigger or smaller builds, because the motor noise would possibly begin increased or decrease in frequency, and also you would possibly want it to fade in additional shortly or slowly depends upon the noise. This characteristic is simply accessible in CLI, for instance:

set rpm_filter_min_hz = 100 set rpm_filter_fade_range_hz = 50

This implies the RPM filter is efficient from 100Hz, however at minimal power, the filtering strengths will increase from 100hz and develop into full power at 150hz.

Q Worth

Rising Q worth of a notch filter makes it extra centered on the focused frequency (narrower vary), additionally reduces latency. Once more, this superior setting is simply accessible within the CLI, for instance:

set rpm_filter_q = 500

Default works properly many of the occasions, however could be superb tuned by growing Q till motor noise is seen within the Filtered Gyro diagram, then again off. Don’t exceed 1000.

RPM Filtering Dimming

This permits particular person management of every RPM filter to focus on harmonics. For instance, when utilizing 3-blade propellers, the second harmonics is normally not very robust, however the third harmonics is. On this case you need to use extra filtering power on the third harmonics and fewer on the 2nd:

set rpm_filter_weights = 100, 0, 80

And when utilizing 2-blade propellers, the place 2nd harmonics is stronger than the third harmonics, you are able to do one thing like this:

set rpm_filter_weights = 100, 80, 0

You may lower RPM filter weights much more so long as motor noise shouldn’t be seen within the filtered gyro diagram.

Tuning Dynamic Notch Filter

The dynamic notch filter suppresses sign peaks in gyro sign which might be principally vibrations from the body or different {hardware}, i.e. body resonance (carbon fibre could be surprisingly springy), antennas, GoPro in a TPU mount, and bent propellers.

When RPM filter is enabled, Betaflight will mechanically cut back the quantity of Dynamic Notch filtering (fewer notch counts and better Q worth) as RPM filter will do many of the heavy lifting. You may additional tune Dynamic notch primarily based by yourself setup.

Tuning Dynamic Notch Filter means to reduce the notch rely, use the best doable Q worth and preserve the min/max frequency as slender as doable. Fewer notches = much less filtering however decrease latency. Even higher, if body resonance isn’t very robust, you’ll be able to attempt disabling this filter to avoid wasting filter delay.

Have a look at the warmth map and establish what number of body resonances there are to determine what number of notches are wanted. You may have as much as 5 notches however normally 1 or 2 ought to be sufficient until your drone is poorly constructed or in a very beat up situation. Particularly when you might have RPM filter enabled, 1 notch is normally sufficient to crush out body resonance. In case your quad can’t use RPM Filter, for instance on a tiny whoop, you’ll be able to attempt to allow Dynamic Notch Filter with 5 harmonics, Q issue 350 and Min Frequency at 100Hz as a place to begin, then tune it by working your manner up.

On this instance, there solely appears be to at least one body resonance round 210Hz (see the horizontal line that seems throughout the entire throttle vary).

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Frame Resonance Dynamic Notch Sournceone V5

The Q worth determines the width of the filter: Larger Q = narrower filter, much less filtering however decrease latency.

If the default Q of 500 is working properly, attempt 600 and even 700 (principally discover the best Q worth that may nonetheless adequately management these resonances), however keep away from exceeding 1000. If after filtering you’ll be able to nonetheless see the body resonance noise, you would possibly want a decrease worth. Test Dterm heatmap to see the way it impacts D-term noise as properly to determine whether or not or not your Q worth can go increased.

Min/Max Frequency are the cut-off frequencies, it’s principally the efficient vary of the Dynamic Notch filter. Merely add 20-30Hz further vary to every facet of the resonance.

I might keep away from setting Min Frequency too excessive for security as bent props can create huge resonance too. In case you crash and attempt to fly house with a bent prop, the dynamic notch filter can actually assist to scale back the vibrations that may get into the D-term. We don’t know precisely the place that resonance goes to be, however having a wider frequency vary has the next probability of catching it. If the Dynamic Notch fails to catch these newly pop up resonances as a result of Min Frequency is ready too excessive, your motors can get scorching and even burn in these conditions.

On this instance, I attempted to extend Q to 700 and set the min/max frequency to 160-230Hz, however Q is clearly too excessive I believe. There’s extra unfiltered noise, and it will get into Dterm and get amplified.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Frame Resonance Dterm Noise Amplified

Lastly, after I set Q to 450, the noise is sufficiently managed. Within the beneath graphs, on the left is Q=700, the proper is Q=450. You may test Dterm heatmap once more to substantiate that is working properly.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Frame Resonance Dynamic Notch Sourceone V5 Q Freq

Tuning Gyro Lowpass Filter

Most often you’ll be able to simply flip off Gyro Lowpass 1 filter because it’s not wanted, take a look at fly aggressively for 30 seconds, and test motor temperature to ensure they aren’t scorching earlier than continuing.

Betaflight 4.3 Disable Gyro Lowpass 1 Filter

Then use the “Gyro Filter Multiplier” slider to scale back Gyro Lowpass 2 a few notches at a time. Transferring the slider to the proper = transferring frequency up = lowering filtering  = much less delay = higher prop wash dealing with and better PID features.

Betaflight 4.3 Reduce Gyro Filter Slider

Right here I’ll examine the gyro frequency spectrum between Gyro Lowpass filter slider worth 1.0 (brown), 1.5 (crimson) and a pair of.0 (orange).

The three strains nearly overlap one another, that counsel Gyro lowpass filter isn’t actually doing a lot and could be decreased. Curiously, for those who take a look at the noise within the sub-100Hz spectrum, it truly will get ever so barely higher with much less filtering, that echoes what we talked about earlier.

Vital:

  • By no means disable Gyro Lowpass 2 filter for 2K/4K PID loop frequency as a result of anti-aliasing causes
  • For 2K looptime, go away Gyro Lowpass 2 at 500Hz because the minimal
  • For 4K you’ll be able to set Gyro Lowpass 2 so far as 1000Hz
  • For 8K, you’ll be able to disable Gyro Lowpass 2 solely if noise isn’t a difficulty

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser Gyro Lowpass 1 1.5 2 Compare Sourceone V5

Tuning D Time period Lowpass

D time period is way noisier than Gyro as a result of its delicate nature and noise will get amplified as frequency goes up, so be further cautious and conservative when coping with D Time period filtering.

Attempt transferring the “D Time period Filter Multiplier” slider to the proper a notch at a time and see how the drone responds in a 30-second take a look at flight (do some acro strikes), additionally test motor temperature after touchdown. In the event that they get scorching you need to return a notch or two.

I might warn towards going too aggressive with lowering D Time period filtering, go away some headroom for doable bent props throughout flight. Too little D Time period filtering and a broken propeller are the most effective mixture for warm/burned motors.

Right here’s a comparability between 1.0 (brown), 1.3 (crimson) and 1.6 (orange) in D-term filtering slider positions. As you’ll be able to see much less filtering is clearly noisier for dterm, not like Gyro lowpass.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser D Term Slider 1 1.3 1.6 Sourceone V5 Within the following heatmap, from left to proper: unfiltered D time period, Dterm lowpass filter 1.0, 1.3 and 1.6.

In case you hear the motors getting tough (thrilling oscillation) as you cut back d-term filtering, it’s the rising noise beneath 100Hz (you’ll be able to test the <100Hz graphs to substantiate). On this instance I’d in all probability keep beneath 1.3, possibly 1.2 and even simply 1.1 to be secure.

Betaflight Blackbox Filter Tuning Pidtoolbox Spectral Analyser D Term Slider 1 1.3 1.6 Heat Map Sourceone V5

After you might have tuned PID features, you need to come again and test once more if D Time period filtering could be optimized.

If the D Time period traces are very noisy, one or two clicks extra filtering on the slider might assist. If the D time period hint may be very clear, you’ll be able to maybe cut back filtering a bit extra (if motors are usually not scorching). See beneath graphs, the left has a loud D time period hint, the proper is way cleaner.

Betaflight Blackbox Pid Tuning Dterm Lowpass Clean D Term Trace

Vital: NEVER disable D-Time period lowpass filters utterly, you’ll burn your motors.

Gyro/D Time period Notch Filters

There’s no want to the touch Gyro Notch Filter and D Time period Notch Filter, these are static notch filters which have develop into legacy since they’ve been changed by RPM filter and dynamic notch filters. So many of the occasions you received’t want to make use of them.

Say if there’s a powerful resonance at a really particular frequency (akin to body resonance), static notch filter could be useful. Nevertheless the dynamic notch filter can normally cowl it and so a static notch filter is normally not wanted. You may nonetheless attempt including a static notch for the identified body resonance and lowering the dynamic notch rely by one and see which technique works higher in your setup.

Yaw Lowpass Filter

The default yaw lowpass filter at 100Hz cutoff has minimal latency penalty subsequently it may be left untouched. Whoops can particularly profit from Yaw Lowpass filter because it helps to scale back yaw spin in collisions.


PID Tuning

To tune PID utilizing Blackbox, I will likely be following the “Basement Tuning” methodology utilizing PIDToolBox. It’s beginner-friendly and you may actually do it in your basement/mattress room therefore the title. Principally you simply have to carry out a sequence of quick flights with barely completely different PID values, then examine the logs to search out the optimum features.

Throughout flight, you need to transfer the quad round in pitch and roll axis, easy sufficient. You may be taught extra concerning the basement methodology on this video by PIDToolbox.

Betaflight Pid Tuning Pidtoolbox Basement Method Flight Perform

Though they name it the “basement tuning methodology”, I’m actually not comfy doing this indoor. I had a few “fly to the moon” incidents up to now and I nearly drilled a gap within the ceiling, so I all the time attempt to do these assessments within the backyard or within the native park.

Fee Profile and Angle Mode

It takes some good line of sight flying abilities to carry out the basement tuning flights. It’s not simple to maintain the drone managed in confined house with out hitting the partitions. To make it simpler, do this charge profile (Precise Fee):

  • Heart Sensitivity 250
  • Max Fee 400
  • Expo 0.00

It has low max charge, so it’s much less more likely to get uncontrolled for those who transfer the sticks an excessive amount of. The excessive and linear middle stick sensitivity ensures the stick inputs are sufficiently big for the logs.

You may even carry out this take a look at in Angle mode which makes it even simpler than charge mode. Based on the creator of PTB, this works simply in addition to in charge mode, however you want to do the next first:

  • Calibrate accelerometer on the Setup tab
  • Set Angle mode power to 100 in PID Profile Settings
  • Click on Save

Discovering P/D Stability

To begin with, decrease these features in order that they don’t intrude with our tuning:

  • Set the “Stick Response” slider (Feed Ahead) to 0 
  • Set the “Dynamic Damping” (D Max) slider to 0
  • Set the “Drift-Wobble” (I features) slider to 0.2, it’s low sufficient that it shouldn’t introduce overshoot but have just a bit I phrases to assist stabilize the quad higher, makes it simpler to manage

Betaflight Blackbox Pid Tuning Pidtoolbox Slider Intial Setup

Regulate the “Damping” (D features) slider, begin with a minimal worth you need to take a look at. For a typical 5-inch FPV drone, 0.6 is an efficient place to begin.

Betaflight 4.3 Damping Slider Move Down

Here’s what you need to carry out within the flight:

  • Arm and hover
  • Continually transferring the roll and pitch stick for 20-30 seconds, the extra actions the extra correct will probably be
  • Do as huge strikes as you’ll be able to with out hitting the partitions (ideally full stick deflections)
  • You may transfer each pitch and roll collectively so long as you’ll be able to preserve it beneath management
  • Attempt to not cease/hover for too lengthy throughout flight, and be as steady as you’ll be able to

Elevating the Damping slider by 0.2 every time and repeat the flight: e.g, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6. Whenever you increase D acquire too excessive, your motors will sound tough, subsequently you’ll be able to’t all the time take a look at the final one or two values, which is okay.

The quickest technique to change slider worth is by going into Betaflight OSD menu, Profile, Simplified Tuning. However if you’re unable to do that then simply plug within the USB cable and use the Betaflight Configurator.

Betaflight Osd Menu Simplified Tuning Slider Dji Avatar Hdzero Digital

It’s a good suggestion to vary battery each 2-3 flights to make sure the outcome isn’t affected by voltage. Energy cycle the quad by unplugging the battery earlier than each flight so it creates a brand new log. Or just select “Save and Reboot” within the OSD menu so that you don’t have to unplug.

16MB reminiscence ought to be sufficient for six 30-second flights for those who time it properly.

After you might have accomplished all of the flights, obtain them to your laptop. To prepare the logs higher, I’ve a folder construction created for this course of, obtain right here: https://drive.google.com/file/d/1tx1AV2lOMgknAwIB3VFhqP1i6VpDLVjr/view?usp=share_link

Betaflight Blackbox Pid Tuning Pidtoolbox Folder Structure

And I rename the logs to one thing like “01 d06“, “02 d08” and many others (01 means first take a look at flight, d06 means damping slider worth 0.6), and put them within the “02 PD Stability” folder.

Load all of the logs in PTB, undergo every one and take away the take-off and touchdown elements for every log (to do that, allow “Trim” on the proper hand panel).

Betaflight Blackbox Pid Tuning Pidtoolbox Step Response Basement Method

Click on the “Step Resp Device“, choose all of the recordsdata and click on Run. when you have offset within the curves (gyro curve transferring away from setpoint in direction of the tip), allow Y Correction.

Betaflight Blackbox Pid Tuning Pidtoolbox Step Response Basement Method Pd Compare Lines

It’s fairly straight-forward, merely choose the most effective trying line, that’s your optimum Damping slider worth. The perfect response ought to look one thing just like the inexperienced line within the following graph, little to no overshoot. Having a tiny little bit of overshoot is appropriate.

In case your traces don’t look clean however have a number of ups and downs, that’s known as oscillation, and it’s an indicator that the sign is just too noisy or your actions aren’t sufficiently big.

The graphs on the proper are additionally extraordinarily useful:

  • Peak is highest amplitude of the overshoot (ideally the nearer to 1 the higher)
  • Latency is the time it takes to succeed in setpoint (ideally the decrease the higher)

Betaflight Blackbox Pid Tuning Pidtoolbox Step Response Basement Method Peak Latency Graphs

When D acquire is low, you’re going to get overshoot and even oscillation. As D acquire will increase, there will likely be much less overshoot and Peak will lower, however Latency will go up because of this. When D is just too excessive (undershoot), the preliminary peak won’t even attain the setpoint and this isn’t preferrred. Discover a response that has minimal overshoot and but has comparatively low Latency.

You may zoom in and see it extra clearly (or choose fewer logs, and hit Run once more). We solely want to take a look at Roll and Pitch axis.

In our instance, it’s fairly clear the best worth is orange (3) for each pitch and roll, so that may be 1.0.

It’s fairly frequent to have a unique PD stability on pitch and roll because of the completely different weight distribution. If that’s the case for you, take the Damping slider to the place you need for pitch, write down the pitch D acquire, then take the Damping slider to the place you need for roll, and modify the Pitch Damping slider to match the pitch D acquire you simply wrote down.

Betaflight Blackbox Pid Tuning Pidtoolbox Step Response Basement Method Pd Compare Lines Zoom In

Generally it’s higher to be a bit extra conservative and keep away from having D acquire too excessive. In case you are on the fence, all the time go together with much less D acquire (the next P/D ratio), so you’ll be able to increase your general PID features increased on the finish since D is normally the limiting issue.

What I’ve discovered is that the step response instrument tends to be fairly delicate and the P/D stability may be decrease than what I’d personally choose. So I usually bump up P/D stability by 5-10% after discovering a perfect worth. That’s simply my private desire, you may give {that a} attempt if you’d like.

Drone measurement additionally impacts PD ratio, bigger drones are inclined to have increased P:D ratio. For instance a 5″ would possibly use 0.8-1.1 Damping slider whereas a tiny whoop would possibly use 1.4-1.6.

Discovering Max D Achieve

Do the identical take a look at for Grasp Multiplier slider at 0.2 steps, e.g. for five″ drone, that may be  0.8, 1.0, 1.2, 1.4, 1.6 1.8.

Betaflight 4.3 Master Multiplier Slider Move Up

Be very cautious although, don’t stand too near the quad throughout this take a look at, since you would possibly hit some extent the place D is just too excessive and the quad can shoot up. Pay shut consideration to motor noise, whenever you hear thrilling oscillation you need to cease.

Betaflight Blackbox Pid Tuning Pidtoolbox Step Response Basement Method Master Multi Slider

You would possibly discover the shapes of the step response don’t change a lot between completely different values, and the Peak values keep roughly the identical too. That’s as a result of the form of the response curve is principally decided by the P/D ratio. By growing the features received’t have a lot of an impact on the response, however by bumping up P/D features can cut back Latency.

You’ve gotten reached the best Grasp Multiplier acquire when one of many following occurs:

  • you hear thrilling oscillation – you’ll be able to’t improve D acquire anymore
  • or the latency doesn’t lower anymore (or little or no) – which means it has reached the higher certain tuning window, motors are working on the hardest and you aren’t getting anymore efficiency out of them

How excessive your features can go is decided by how noisy your construct is and the way a lot filtering you’re utilizing. Much less filtering permits for increased PID features. Generally it’s higher to be a bit extra conservative and switch the Grasp Multiplier slider down a notch or two when you might have discovered the max worth, and to not push D acquire to the sting could be safer within the occasion of a bent prop. Notice that drones utilizing increased cell rely battery (increased voltage) have a tendency to permit decrease D features, e.g. on a 6S quad, D features may be within the 30’s, whereas on 4S they’re normally within the 40’s.

In my instance, 1.6 appears to be the worth that offers us the least quantity of latency, and there may be not a lot enchancment going as much as 1.8.

You would possibly or won’t be capable to hear the thrilling oscillations. To test, merely go to Spectral Analyser and plot Dterm. Because the features get increased, the motors will make an exhilarating sound that peaks round 40-80Hz (particularly as you ramp up throttle). In case you see noise at this frequency vary creeping up with increased features, then for positive you might have an oscillation beginning that’s PID associated.

On this instance, you’ll be able to clearly see that peak round 60Hz for 1.4 (olive), 1.6 (inexperienced) and 1.8 (cyan). Though 1.6 exhibits enchancment in latency, I personally wouldn’t danger it. I’d in all probability go for 1.3 and even 1.2 on this instance simply to be secure.

Betaflight Blackbox Pid Tuning Pidtoolbox Basement Method Master Multi Slider Dterm Noise

It’s nonetheless controversial whether or not it’s higher to have extra Dterm filtering and better D acquire, or much less Dterm filtering and decrease D acquire. However by no means run much less Dterm filtering and excessive D acquire or disasters can occur whenever you hit a department or have bend a prop! It’s no joke 🙂 Talking from expertise right here:

A publish shared by Oscar Liang (@oscarliang3)

In case you test setpoint monitoring now (plot Gyro and Setpoint), you need to discover the quad monitoring fairly properly. The 2 line ought to be roughly parallel (which means the quad is accelerating and decelerating on the similar charge as Setpoint), however there’s nonetheless fairly an enormous hole between them, which is latency! Within the subsequent step, we’ll cut back that hole utilizing Feedforward.

Betaflight Blackbox Pid Tuning Pidtoolbox Basement Method Master Multi Slider Setpoint Tracking No Ff

Tuning Feed Ahead

Betaflight 4.3 Stick Response Slider Move Up

Feed Ahead accelerates your quad whenever you transfer the sticks, making your quad extra responsive and observe setpoint nearer.

P time period is sort of gradual in comparison with Feedforward as a result of it solely begins to react when there’s a PID error. Feedforward measures the speed of stick deflection – how briskly you’re transferring the sticks. It doesn’t rely on gyro information, it will get the motors transferring as quickly because the the stick strikes, subsequently it’s lots quicker than P time period.

When tuning Feed Ahead I choose to do some snap rolls and flips and test Gyro/Setpoint traces. Use your ordinary charge profile, or a default charge profile in Betaflight (simply swap to the unused charge profile) to get a good max charge at full stick.

As an alternative of utilizing the step response instrument in PTB, we are able to simply test setpoint/gyro traces in BE, the gyro ought to be monitoring setpoint even higher than earlier than (much less delay). In the most effective circumstances the gyro could also be proper on prime of setpoint. If Feedforward overshoots (gyro strikes earlier than setpoint), then feedforward is just too excessive. Within the following demonstration, 0.5 is manner too low, 1.0 continues to be not excessive sufficient, however 1.5 is a tiny bit an excessive amount of and overshoots. I believe Feedforward at 1.3-1.4 ought to do it on this instance.

Betaflight Blackbox Pid Tuning Feedforward Setpoint Tracking In case your feedforward acquire is manner too excessive, it would even trigger P time period to go the wrong way attempting to struggle it 🙂

Blackbox Log Too Much Feedforward

Doesn’t matter what your flying type is, feedforward could be helpful and doesn’t apply solely to sure forms of flying. Even cinematic flying can profit from a superb quantity of feedforward, if you’re transferring your stick easily and slowly, then feedforward received’t kick in anyway. Whenever you want snappy response FF will cut back the latency between stick enter and quad response. If you need clean flying, simply use expo, extra RC smoothing or decrease your charge.

There’s an non-compulsory setting, Feedforward increase (FF Enhance). You need to improve it if gyro lagging behind setpoint in the beginning of a transfer, however catching up in a while. However you need to cut back it if gyro will get forward of the setpoint in the beginning of a transfer, however falls behind later.

Tuning I Achieve

The perfect I time period is just about a really feel factor to a point, you don’t want quite a lot of I acquire when you might have optimum P and D features, simply want a minimal quantity of I acquire to maintain the drone from drifting and wandering. Check out my methodology of tuning I right here. In case you are cruising ahead with minimal stick inputs, the drone ought to maintain its place for a time. If there’s any drifting then you definitely want increased I acquire.

I time period has a REALLY WIDE tuning window particularly for highly effective 5″ quads, 0.5 to 1.5 within the I time period slider would in all probability work superb. That’s why we are able to tune every thing else and tune I time period final. With a excessive I acquire your quad will really feel extra exact, however after I acquire is just too excessive your quad could have gradual oscillations and also you need to keep away from that.

In case you are attempting to push I acquire as excessive as doable, you’ll be able to attempt transferring I acquire slider up till you might have gradual bouncebacks and oscillations throughout quick strikes, then come again down a notch or two.

Since we now have added FeedForward, and the Gyro/Setpoint are monitoring so intently, the Step Response instrument in PTB received’t be efficient for locating the I time period. So I usually tune I acquire by trying by way of the goggles and listening to the motors.

Due to the characteristic “I-term loosen up” in Betaflight, you need to use very excessive I acquire with out a lot of the destructive results. What I discovered when setting I time period too excessive is it’ll make the traces look bumpy when doing flips and rolls. So I are inclined to set I on the decrease facet for my freestyle rigs, simply sufficient to maintain the quad from drifting as a result of wind. Utilizing Anti-Gravity can increase your I acquire temporally throughout throttle pumps to scale back nostril wanders, so I normally don’t discover the necessity to have very excessive I acquire. For five″, I usually go away it just under 1.

With I time period loosen up, you’ll be able to modify the cutoff primarily based on its responsivenes. For freestyle drones, you’ll be able to usually go away it at default. For racing drones, improve it to 30. For heavier drones like cinelifters and seven″ lengthy vary carrying GoPro, you’ll be able to set cutoff to 10.

Dynamic Damping

Dynamic Damping boosts D acquire to the utmost throughout sharp strikes, however doesn’t increase up throughout regular flight. This reduces motor warmth.

Decreasing Damping slider whereas transferring Dynamic Damping slider so D Max maintains the unique D acquire, however your By-product acquire is now decrease which is used throughout regular flights and preserve the motor cooler.

Different Settings

Anti Gravity Positive factors

As talked about, whenever you punch out and let go of throttle, the drone would wobble and nostril dip. Anti Gravity (AG) can increase I acquire temporally when throughout throttle pumps to scale back these undesirable dips. Nevertheless whenever you set AG acquire is just too excessive, your quad might stutter whenever you let go of throttle (fast oscillation), as a result of AG boosts each P and I.

Default is 8, cut back it for those who see wobbles throughout quick throttle adjustments. For five″ freestyle drones, I discovered 4 to eight a superb vary.

It is advisable to tune AG by trying within the goggles.

Dynamic Idle

Dynamic Idle Worth 30 to 35

Dynamic Idle helps to enhance stability, higher propwash dealing with and decrease probability of ESC desync. The draw back is chances are you’ll lose grasp time. By growing motor pace when throttle is at zero, it improves management authority of the PID controller and low throttle enter responsiveness. There are additionally different advantages akin to sharper flip and roll stops, extra responsive in low throttle and more practical braking and many others.

When Dynamic Idle is ready, Static Motor Idle (in %)  within the Motors tab is disengaged.

To setup Dynamic Idle, you want to

  • allow bi-directional DShot within the Motor Tab (if you have already got RPM filter enabled, you’re all set)
  • set an appropriate Idle RPM worth within the PID Tuning web page (enter 30 to 35 for five″)

The really helpful Idle RPM worth relies upon lots on propeller measurement and pitch, smaller and decrease pitch propellers typically require increased worth. For 7″ you’ll be able to typically set this to 14-28, for five″ drones, 20-40, and for 3″ it’s increased at 33-66. When it’s windy you may also set this increased to counter.

Prop Sizes Excessive Pitch Props Low Pitch Props
31mm/1.2″ 84 167
40mm/1.6″ 62 124
2″ 50 100
2.5″ 40 80
3″ 33 66
3.5″ 28 57
4″ 25 50
5″ 20 40
6″ 16 33
7″ 14 28
8″ 12 25
10″ 10 20

Worth too excessive, you lose grasp time whenever you let the drone fall the other way up (the motors push more durable in direction of the bottom). A excessive worth may even are inclined to make the quad “hover” a bit extra even at zero throttle, making throttle administration a bit more durable. When worth is just too low, you danger low throttle instability.

To set the worth, depends upon what ESC idle you had beforehand (default is 5.5%), take a look at your motor within the motor tab, you need to use a smoke stopper or bench energy provide to restrict present in case it goes uncontrolled. Spin the motor on the ESC idle worth, e.g. for five.5%, transfer slider to round 1055, and see what the reported RPM worth is (it would solely present this for those who allow bi-directional DShot). Then this RPM worth could be the best worth in your dynamic Idle worth (divide it by 100).

Throttle Enhance

Default worth is 5, works for many freestyle builds. It boosts your throttle worth when you find yourself transferring throttle stick up abruptly to provide you further energy, it offers you an influence increase but additionally makes throttle extra unpredictable. It doesn’t have any impact whenever you transfer throttle stick slowly although. In case you discover throttle is difficult to handle you’ll be able to cut back it. I do know some racers even disable throttle increase solely by setting it to 0. You may experiment with smaller values and see what works for you.

Voltage Sag Compensation

It reduces the utmost motor drive worth when battery is full, and will increase it because the battery voltage goes down. It offers extra constant flight efficiency all through the entire flight.

Thrust Linearization

Allow Thrust Linearization, 20%.

This may increase PID to enhance responsiveness and management authority at low throttle, whereas decreasing PID at prime throttle to scale back oscillations (similar impact as TPA). It could possibly assist with nostril dip too.  That is particularly really helpful for whoops and for those who use 48KHz PWM frequency on ESC. It’s additionally helpful when TPA alone isn’t sufficient to handle excessive throttle oscillation.

Because it boosts PID at low throttle, you would possibly need to drop the grasp multiplier slider down a notch or two if motors get scorching.

TPA

Do a throttle sweep once more and test freq vs throttle heatmap.

In case you are getting oscillations solely above sure throttle degree, TPA may be the answer. It additionally helps to push PID increased with out supplying you with drawback within the excessive throttle vary.

Within the newest Betaflight it solely attenuates D acquire above sure throttle degree (which is normally the reason for the oscillations). Within the older Betaflight it attenuates each P and D, if you’d like you’ll be able to convey this again by typing in CLI: set tpa_mode = PD.

Usually I choose to set throttle worth in TPA as excessive as doable, so D acquire is extra fixed throughout a wider throttle vary. Make certain to set the throttle worth a bit decrease than the place the place the D time period associated oscillations begin to present up. For instance, if oscillation begins round 1800 throttle, I might do one thing like this: TPA = 0.75, 1750.

Revisit D time period filtering

In any case these adjustments, you’ll be able to test D time period filtering once more and see if you want to cut back or improve it.

I Time period Rotation and Absolute Management

There’s no want to make use of these options for FPV Freestyle Drones. These options are principally useful for line of sight pilots.

Tuning Yaw

I don’t play with Yaw an excessive amount of, default acquire typically works properly. The tuning window for Yaw is sort of large.

In contrast to pitch and roll that are primarily based on thrust generated by propellers, yaw relies on the inertia generated by propeller rotation. Subsequently, yaw will inherently be too gradual to overshoot setpoint, and there’s little have to tune yaw PID.

Yaw can also be too gradual for D phrases to have any significant impact and it’s typically not required. Nevertheless you’ll be able to allow it if you’d like, nevertheless it would possibly introduce extra drawback than it solves, like vibrations and many others. So we’re left with P and I phrases for Yaw.

You may tune Yaw utilizing the step-response evaluation like we did with Pitch and Roll. Moreover, if gradual oscillations happen within the again a part of the graph, then I-Time period is just too excessive. If quick oscillations happen, then P-Time period is just too excessive.

In case you have yaw shakes when doing throttle pump, you’ll be able to isolate yaw from the slider tuning, and set Yaw PID individually. To do that, go to the PID tuning tab, within the ‘Slider Mode’ dropdown record, choose RP (Roll Pitch), as a substitute of RPY (Roll Pitch Yaw). This may exclude yaw values from the sliders, and means that you can enter PID numbers for yaw. For five″ freestyle and cinematic builds, attempt 100 for each P and I might be a superb place to begin. You can too attempt increased values as yaw tends to be fairly gradual reacting.

There isn’t any excellent tune

How good is sweet sufficient? You may all the time spend extra time enjoying with filters and PID numbers, and you may even see enhancements however it may be situational and the time you put money into it won’t be proportional to the outcome. I usually simply cease when it appears “ok” and go away it there until I’ve a particular drawback I need to remedy.

Troubleshooting Suggestions

Unhealthy Gyro

On default Betaflight settings, a 5-inch FPV drone ought to already fly fairly easily. In case your quad has vibration, it may both be mechanical or electrical associated. Generally the Gyro on the FC could cause issues too, although this isn’t frequent.

Right here’s what a nasty gyro would possibly appear like. What tends to occur with a nasty gyro, is that one axis is especially noisier than different axes, particularly within the decrease frequency spectrum beneath 200Hz. In case you rotate the FC by 90-degree, and the noisy axis follows the rotation, then that Gyro may very well be defective.

On this instance, you’ll be able to see pitch axis is way noisier than roll and yaw. You can too see bursts of D time period noise within the pitch axis which is brought on by the noisy gyro.

Blackbox Log Explorer Faulty Gyro

Nevertheless, it doesn’t need to be a nasty Gyro, different potential causes are: excessive energy wires close to the gyro, noisy energy to FC, unhealthy board design, and many others. You may attempt utilizing a 1000uF low ESR capacitor on the ESC energy. In case you have already performed that, attempt soldering an additional smaller 220uF-470uF cap to the ability of the FC (VBAT/VCC pad).

RC Smoothing

RC smoothing is a must have setting in Betaflight so as to keep away from problem with feedforward. The suitable RC smoothing settings rely in your specific RC hyperlink, I strongly suggest simply loading the suitable RC_Link preset, it’s the easiest way to keep away from consumer errors.

The Auto Issue is maybe probably the most vital values, decrease is extra twitchy and responsive whereas the next worth is softer and smoother however extra sluggish. Right here’s a normal rule I personally observe:

  • 20-25: Racing
  • 30: Default worth, nice for Freestyle
  • 50: Cinematic
  • 90: Extraordinarily clean cruising, delay may be noticeable to some
  • 120: The very best smoothness doable with out stepping into bother, however delay is noticeable

Unhealthy gear/pilot require increased RC smoothing too, e.g. Low high quality radio management tools, worn out gimbals, pilots with shaky fingers, and many others. Principally something which may contribute to jerkiness in RC instructions.

If doable, test black field logs to substantiate you might have clean setpoints, if the setpoint isn’t clean (has steppings from RC instructions), merely improve the smoothing barely.

In case you have noise in setpoint that peaks round 50Hz, 150Hz, 250Hz or 500Hz, then there may be in all probability an issue with RC smoothing. These frequencies are frequent packet charges in RC hyperlink. On this instance, it’s Crossfire 150Hz.

Blackbox Log Explorer Setpoint Noise Peak 150hz Not Enough Rc Filtering

In case you are not utilizing sufficient filtering for the RC instructions, you won’t have smoothed out the RC sign sufficient and it may create noise on the frequency of your radio hyperlink packet charge.

RC smoothing removes stepping and bumpiness in your set-point, it makes P time period hint much less jerky. Nevertheless it additionally provides delay to feedforward in addition to setpoint, so your quad would possibly really feel a bit bit much less responsive. RC Smoothing is beneficial, however an excessive amount of smoothing defeats the aim of getting quick RC packet charges like ExpressLRS presents.

The objective is to clean out the steppings however not including an excessive amount of delay. If you need smoother RC enter, attempt including some extra expo, it has related impact nevertheless it received’t provide the latency penalty.

One of the simplest ways is to simply load the suitable RC Hyperlink preset as I talked about right here. In case you didn’t load the proper RC_Link preset in your specific RC hyperlink and packet charge, it may also trigger issues to Feedforward. On this instance, feedforward jitters because of the lack of stepping smoothing in RC instructions.

Blackbox Log Wrong Rc Link Preset Feedforward Jitter Smoothing

PID Sum too low?

PID_Sum hitting the default 500 restrict right here (50%) as a result of PID are set very excessive on this drone. You may increase it to 1000 (in CLI enter set pid_sum_limit=1000) to repair it, nevertheless it doesn’t all the time make a distinction in flight behaviour as motors would possibly saturate at this charge anyway.

Blackbox Log Pid Sum Too Low 500 Motor Saturate

ADC Filter Jitters Inflicting Oscillations

In case you are getting random vibrations and wobbles as a result of feed ahead jitters, despite the fact that you’ve utilized the proper RC Hyperlink preset or elevated RC smoothing, it may very well be ADC filter!

Ensure you have turned it off in your radio’s system menu, {hardware} web page.

That is what  the feedforward spikes appear like when ADC filter is tuned on.

Blackbox Adc Filter Jitter Rc Commands Feed Forward Spikes

I spent over 3 months scripting this 7000 phrases tutorial! In case you discover my content material helpful, please contemplate supporting my work.



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles