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

[indi] only calculate command if in flight #2873

Merged
merged 1 commit into from Apr 29, 2022

Conversation

gautierhattenberger
Copy link
Member

In particular, don't run wls_alloc if not needed, it has a good chance to fail while on ground anyway.
The CPU usage is rising when this optimization is called for nothing, which can be avoided.

in particular, don't run wls_alloc if not needed, it has a good chance
to fail while on ground anyway
@EwoudSmeur
Copy link
Member

LGTM. What do you mean that it has a good chance to fail? I hope not 😅

Copy link
Member

@EwoudSmeur EwoudSmeur left a comment

Choose a reason for hiding this comment

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

I approve!

@gautierhattenberger
Copy link
Member Author

Actually, I have not checked the return status to know if it stops after too many loops or not, but for sure the computation time is at least doubled while on ground !

@gautierhattenberger gautierhattenberger merged commit 5a2cc4c into master Apr 29, 2022
@gautierhattenberger gautierhattenberger deleted the indi_not_in_flight branch April 29, 2022 11:53
FlorianSan pushed a commit to enacuavlab/paparazzi that referenced this pull request May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants