Skip to main content Link Menu Expand (external link) Document Search Copy Copied

LowPassFilters

Table of contents

  1. Low-Pass Filter (LPF) tuning is a must!
  2. Please note that 0.4.0+ adds PT2, PT3 and PT4. Some of these recommendations may not apply in the same manner.
  3. Should I use 1 or 2 dTerm LPF’s?
  4. Should I use a PT1 or BIQUAD?
  5. Per-Axis Tuning
  6. Notable Filtering resources:
  7. Further examples:
  8. Filter Tuning Tips:

Low-Pass Filter (LPF) tuning is a must!

  • Over-filtering can cause problems.
  • Under-filtering can cause problems.
  • EmuFlight stock defaults are fair for a 5” standard-frame quadcopter, but generally over-filter.
  • The goal of filter tuning is to have a quad-specific tune that is neither over-filtered nor under-filtered.

Please note that 0.4.0+ adds PT2, PT3 and PT4. Some of these recommendations may not apply in the same manner.

Should I use 1 or 2 dTerm LPF’s?

  • Depends on your quad’s physical characteristics or if you use Dynamic_Filter.
  • The default Dynamic_Filter ON and two dTerm filters is generally over-filtered.
  • Dynamic_Filter ON and one tuned dTerm LPF is good.
  • Dynamic_Filter OFF and two tuned dTerm filters is good.

Should I use a PT1 or BIQUAD?

  • Some quadcopters seem to be happier with a PT1 while other quadcopters seem to prefer a BiQuad.
  • Gyro and dTerm LPF type can be set independently.
  • Generally the PT1 seems to produce less problems than the BiQuad, but in certain circumstances the BiQuad is better.
  • PT1 filters less and therefore has less latency.
  • PT1 may be more responsive.
  • dTerm PT1 may be less tolerant of high dTerm values and propeller damage.
  • BiQuad filters more thoroughly and therefore may have more latency.
  • BiQuad over-filtering could be a problem though and having to much of a good thing isn’t necessarily good for flying.
  • dTerm BiQuad may be more tolerant of high dTerm values and propeller damage.

@JulioCesarMatias tip: PT1 filter, for example, reduces the signal power by half at the cutoff. A second-order filter attenuates high frequencies more steeply than a first. Third- and higher-order filters are defined similarly.

Per-Axis Tuning

  • Historically in most flightware, a single lowpass filter cutoff value applied to all axes (Roll, Pitch, Yaw). However EmuFlight allows for per-axis tuning as each noise axis usually have differing noise profiles. Per-Axis settings are accessible via expert-mode. Per-Axis filtering

Notable Filtering resources:

  • https://oscarliang.com/betaflight-filtering/
  • https://github.com/betaflight/betaflight/wiki/Gyro-&-Dterm-filtering-recommendations
  • https://www.propwashed.com/notch-filter-practical-guide/

Although not precise, this image represents the basic idea of LPF tuning:

Basic LPF Theory


This example, you can see clearly how the PT1 filter cleaned the noise. Although in this situation, 65Hz is too low for good performance.

PT1 applied too low


This example shows motor dTerm motor noise at a very low Hz. A fair dTerm LPF cutoff could be 85hz. Possibly, any value 70-90 may work. 90 may offer best control and prop-wash handling at the cost of a little heat. If propellers get bent, then motors could potentially get too warm. Lower of 70 may offer heat protection, but at the cost of poor prop-wash handling. Tuning is always a cost/benefit analysis. Here this low Hz is not typical, but only used as an example:

Low Hz Motor Noise Example


Further examples:

Roll Gyro noise – place LPF in vicinity of red arrow:

Roll D-Term noise – place LPF1 in vicinity of red arrow:

Pitch D-Term noise – place LPF2 in vicinity of red arrow:

PID oscillation from too low or too delayed filters:

@QuickFlash Tip: If your pids oscillate in harmonics, then likely your pid balance is wrong or your filters are set too low and adding too much delay. You can see how it starts small and grows over time. That’s feedback from the system. That’s why those oscillations don’t go away. It feeds itself.

Filter Tuning Tips:

@QuickFlash Tip: [Starting from default filters] I just typically raise the Q on the dynamic notch and then just raise the filters cutoffs until I’m happy. Then sometimes I add some ABG stuff in there and that’s about what I do with filters.

@nerdCopter Tip: Do not over-filter! My recommended options for 0.4 (choose one):

  • A) dynamic_filter (gyro) plus 1 dterm-LPF static PT2. (tune your cutoff and dynamic min/max.)
  • B) dynamic_filter (gyro) plus 1 dterm-LPF static PT1 plus dynamic-D. (tune your cutoff and dynamic min/max. requires the least amount of fine-tuning.)
  • C) no dynamic_filter (off) plus 2 static dterm-LPF’s. (tune your cutoffs. filter-type of your choice by tuning. may require the most fine-tuning, but offers least delay. Optionally, D-term ABG works good with static LPF’s.)