-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support per-motor throttle-based harmonic notch #26674
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks right to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really think this should be useing the _actuator
value and removing the thrust linearisation with the actuator_to_thrust
method.
See discussion: #26674 (comment)
I have done the change over to use This is the key commit: IamPete1@c70db86 |
@andyp1per nice work! I'd love to see some test logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we need a pre-arm check for the ratio of bw to freq for multi-source
we could have a notch filter option to disable the check
@andyp1per @lthall maybe we should pre-arm warn if you have multi-source and bw > 0.75*freq/nsources ? we could have a INS_HNTCH_OPTS bit to disable this check |
We don't currently do this for ESC notches and I am currently against it. Please can we move the discussion of that to a separate PR so that we can have a good discussion and not hold this PR up? |
this PR (which I love btw!) will make this situation a lot more common. We need to fix it before we merge this PR. If we defer this test we'll never put it in and we'll get crashes |
2ee5c9a
to
f3671f2
Compare
This has been split out into #27068 |
f3671f2
to
30ba548
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@andyp1per I put some logs here for a hexa that has ESC telemetry: |
I had a look at the BobaHex logs using this. Unfortunately the ref was slightly wrong leading to about a 15Hz separation between the actual motor frequency and the frequency being used by the throttle notch. This has the effect of effectively doubling the bandwidth being used leading to better noise attenuation than would have otherwise be attained using the ESC notch only with a relatively narrow bandwidth (Q=6.2). I'm not sure this proves much other than flying with wider notches is ok. My goto notch width is Q=5 which is not far away so really need an octo test with narrower notch to see the differences. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This really should go in.
Thanks @tridge ! |
To enable set the mult-source bit in INS_HNTCx_OPTS and use the throttle notch