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

Remove barometer LPF #9654

Closed

Conversation

JulioCesarMatias
Copy link
Collaborator

From version 6.0 onwards, there has been an increase in multirotor users complaining of problems climbing "like a rocket" or "shooting towards the moon", and the primary source of this problem is caused by the LPF filter applied to the Barometer reading.

INAV has never used this filter for years, and there have never been so many user reports with the same problem. After the filter activation merge, everything got complicated...

This PR removes this filter, which is unnecessary.

Unnecessary because, in the navigation PID controller, there is already a 5Hz LPF filter in the Velocity Z error calculation and also in the Alt-Hold Derivative term.

The tests were carried out on an F450, with a 7.000 MAh battery. This multirotor always fired like a rocket using versions 6 and 7, but not with 5.1. After testing version 7 firmware without the Barometer's LPF filter, it was found that the filter was in fact bad for estimating altitude, and also 1Hz is an extremely low cutoff frequency, it's a little crazy to have this running in the algorithm.

@rmaia3d
Copy link
Contributor

rmaia3d commented Jan 23, 2024

Could this issue I experienced be related to it?

#9566

Check specially this comment

@JulioCesarMatias
Copy link
Collaborator Author

this comment

Probably yes Rodrigo... Do you want a 7.0 build to test?

@rmaia3d
Copy link
Contributor

rmaia3d commented Jan 24, 2024

this comment

Probably yes Rodrigo... Do you want a 7.0 build to test?

The "problem" is how to safely test the emergency land feature. Ideally, I would like to be able to trigger it via a switch, so that if the ping pong behavior commences, I can simply flip back the switch and assume manual control. Otherwise, I don't feel comfortable risking my quads to test it.

@JulioCesarMatias
Copy link
Collaborator Author

I think the other Dev`s don't see that filtering the Baro at 1Hz is a problem... Basically the Position-Estimator only uses the IMU and the GPS to keep calculating the altitude on multirotors.

@JulioCesarMatias JulioCesarMatias deleted the RemoveBaroLPF branch February 4, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants