Dronecan esc notches

I have a question regarding the configuration of ESC telemetry notches when using DroneCAN ESC telemetry.

I am using Hobbywing 6X SE motors and have set the poles to 28, but the notches are not aligning with the noise peaks at 42/84Hz. I found that if I manually set the center frequency to 84Hz it works, and I am currently covering 42Hz with a throttle notch.

Do I need to set the SERVO_FTW_POLES parameter specifically to make the ESC telemetry notches function correctly with DroneCAN? Leave them at 28 or defult of 14?

Picture is what happens if i use only esc telemetry notches. Poles set to 28

You need to use a lua script to add a RPM correction factor to the ESC data.
Search this forum for " Hobbywing 6X lua"

Isn’t that lua for the old data link v2 that uses a serial connection?

driver for HobbyWing DataLink ESC telemetry

Im connected direct to the can bus. No data link

No, the lua script that I am referring to is very short. It just sets the RPM correction factor.

Oh ok. I cant seem to find it searching. All im getting is this thread and developer calls

AMC will at some point automate this for you.
Are you already using AMC?

Yes. Its made this so much easier.

1 Like

How do i implement this?

Do you want to help out? Great. Look at the Contributing to Ardupilot methodic configurator documentation

Think I i got it. Im seeing it in the messages

i thibk i got it

The reported RPM should now be correct. The center frequencies of the notch filters should now match the motor noise peaks.

Is it supposed to keep popping up in the messages like that? Im only connected to flight controller via USB. I did use AI lol.

Edit. I got it fixed. Thanks for your help

No.

I bet you saved that script into a file and uploaded it using mavftp to the flight controller and then rebooted the flight controller, right?

Somehow 0 became 1000

gcs:send_text(1000, “RPM scale set to 0.714”)

Beautiful

Your post notch signals look really good. Now just get the PID notch to work.

For a 22inch prop 6kg quad im surprised i only need 40hz and 1 harmonic to get all the noise down. I could probably raise the gyro filter higher than 30hz. What do you mean pid notch? I did quick/autotune but the step response was way off. I need to do a manual tune. Autotune over dampened it.