rosflight / rosflight_firmware

Firmware for the ROSflight autopilot
http://rosflight.org/
BSD 3-Clause "New" or "Revised" License
130 stars 46 forks source link

Gyro Notch Filtering #296

Open superjax opened 6 years ago

superjax commented 6 years ago

Another feature from the FPV community that could be useful - notch filtering gyro measurements. (another suggestion from @korken89)

I just went perusing betaflight (I should probably do this more often), and I noticed that they are basically using biquad filters on all their axes. They have some other smarts in there, the coefficients on the biquad filters appear to be dynamic - perhaps some adaptive notch adjustment based on the FFT of the gyro data?

@drinkdhmo pointed out to me the other day that at 8kHz, we should totally be able to observe a lot of the noise in the motors, this would be a neat way to do it.

korken89 commented 6 years ago

Indeed! I can do a small write up on this as well when I make the one for ESC telemetry :)