Notch filter settings advice

I am configuring my drone using the methodic configurator.
I have read about new FFT Filter setup and review web tool - Blog - ArduPilot Discourse
But I’m unsure what good parameters would have to look like.
When looking at the linear amplitude scale I observe a tiny bump here:


Should I aim to remove this bump or not? Could anyone advise on what settings to change best?

this is my flight log: 00000004.BIN - Google Drive

That bump is too small, ignore it.

So the settings are already good?
I’ve read that the bandwidth should be small, mine is 40, is that a problem?

It’s too wide using Multi-Source. Why don’t you try reducing it and use Estimated Post-Filter to see how much it can be reduced and still get the job done?

Apparently, 8Gb of RAM is not enough. :cry:
image

For what?

changing parameters and recalculating the post-filter estimate
next week I’ll try to get access to a laptop with more RAM and try your suggestion

Disable INS_RAW_LOG_OPT and you wont have a ridiculously large log file that takes forever to load or doesn’t load at all.

BTW-How did this get enabled and also the selections for LOG_BITMASK?

The LOG_BITMASK gets set to 2242524 when following the methodic configurator

and for the INS_RAW_LOG_OPT I thought more notch data was more useful

This is not helpful for anyone, including you, wanting to further analyze the results of the configuration. Attitude and Rate are not being logged for one thing. @amilcarlucas, I suggest this bitmask be reset to default after the configurator does it’s thing.

Disable it. The log bitmask already has Fast Harmonic Notch Logging enabled from The Configurator.

thank you for the suggestions :pray:

Probably the browser not the laptop, try Firefox, it has no per-tab memory limit.

thank you, indeed everything works perfectly with firefox.

Are there any resources to learn about good notch filter settings and the effects of all the parameters, so that I can read up on that and learn about it or is this just knowledge you get from experience?

I would first want to learn about it so I understand what I’m doing.

I configured INS_HNTCH_FREQ to 58.8 Hz using the configurator. However, when I use the filter review tool, the first notch shows up around 95 Hz, which is confusing. Here’s the plot I see:


When I change INS_HNTCH_FREQ to 94 Hz, the notch appears to move closer to 100 Hz, as shown below:

I’m trying to understand:

  1. Why is the actual notch frequency not matching the configured INS_HNTCH_FREQ?
  2. Should I leave INS_HNTCH_FREQ at 58.8 Hz, or should I switch to 94 Hz?

In the post-filter estimates, the difference between these two settings seems negligible. However, the frequency response filters tell a different story:
94 Hz setting:

58.8 Hz setting:

From these plots, the configuration at 94 Hz looks preferable because the frequency response curves are smoother. But I’m not 100% certain about this interpretation.

Here are my current settings based on feedback and research:

And for reference, these are the original values:


the response looks very similar.

Questions:

  1. Can someone explain why the notch frequency doesn’t align exactly with INS_HNTCH_FREQ?
  2. Is it better to set INS_HNTCH_FREQ to 94 Hz or keep the original 58.8 Hz?
  3. Are there any other important considerations I might be missing here? Are my final parameters good? I want to get a very good tune for autonomous missions.

Thank you in advance for your guidance!

With ESC Telemetry mode the set INS_HNTCH_FREQ is the lower limit. The actual frequnecy comes from the RPM from the ESCs. If that does not match your peaks it suggests your pole count for the motors might be incorrect so the eRPM to true RPM calculation is not correct.

1 Like

@dkemxr The default value for LOG_BITMASK changed two days ago. Which value do you recommend?

INS_RAW_LOG_OPT The documentation recommends 9, should the bit be disabled?

Hi @amilcarlucas - I still see it as 176126 for V4.6.0-beta1 but I would say 2273278 which is that default + Fast Harmonic logging.

What has happened a couple of times is the LOG_BITMASK has everything enabled and then RAW Logging was enabled too and the browsers choke on with the Web Tools. But @iampete did offer a solution to use Firefox. I use Brave typically.

oh okay, it is a lower limit, that explains it. Thanks! My poles are correct, I counted them.

And what do you think about my settings?