Skip to content
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

Filter: protect against extremely low notch filter frequencies (4.4 backport) #25429

Closed
wants to merge 1 commit into from

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Nov 1, 2023

backport of #25352
an incorrectly configured ESC telemetry source can lead to a notch running at very low frequencies. A simple example is a lua script like this:

function update()
esc_telem:update_rpm(12, 0, 0)
return update, 10
end
return update()

where motor 12 is unused.

with that script in place we get a 1.0078 Hz filter which leads to massive phase lag and a crashed aircraft

this is a safety protection. We should also try to find out why the INS_HNTCH_FREQ lower limit is not working

an incorrectly configured ESC telemetry source can lead to a notch
running at very low frequencies. A simple example is a lua script like
this:

function update()
   esc_telem:update_rpm(12, 0, 0)
   return update, 10
end
return update()

where motor 12 is unused.

with that script in place we get a 1.0078 Hz filter which leads to
massive phase lag and a crashed aircraft

this is a safety protection. We should also try to find out why the
INS_HNTCH_FREQ lower limit is not working
@tridge tridge added DevCallEU and removed DevCallEU labels Nov 1, 2023
Copy link
Collaborator

@andyp1per andyp1per left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can we also pull in @IamPete1 's change

@tridge
Copy link
Contributor Author

tridge commented Nov 1, 2023

Please can we also pull in @IamPete1 's change

no, as that can cause aircraft that fly fine now to not fly fine.

@IamPete1
Copy link
Member

IamPete1 commented Nov 1, 2023

no, as that can cause aircraft that fly fine now to not fly fine.

Without this patch won't there notches all be at 0? As you found in your testing here: #25355 (comment)

"21.bin this is without either your fix or mine. You can see it crashes on takeoff due to massive lag"

So I don't think the addition of my patch will cause any crashes on vehicles that are currently flying.

@andyp1per
Copy link
Collaborator

no, as that can cause aircraft that fly fine now to not fly fine.

This is incorrect. It is the lack of that change that makes this change necessary. Using his change is the better fix.

@tridge
Copy link
Contributor Author

tridge commented Nov 7, 2023

this is in 4.4.3-beta1

@tridge tridge closed this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 4.4.3-beta1
Status: 4.4.3-beta1
Development

Successfully merging this pull request may close these issues.

3 participants