-
-
Notifications
You must be signed in to change notification settings - Fork 115
LowPassFilters
- 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.
- Depends on your quad's physical characteristics or if you use Dynamic_Filter Filter.
- The default Matrix ON and two dTerm filters is generally over-filtered.
- Matrix ON and one tuned dTerm LPF is good.
- Matrix OFF and two tuned dTerm filters is good.
- 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.
- 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:
This example, you can see clearly how the PT1 filter cleaned the noise. Although in this situation, 65Hz is too low for good performance.
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:
@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.