-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Logger: dynamic number of subscriptions #13745
Conversation
From http://ci.px4.io:8080/blue/organizations/jenkins/PX4_misc%2FFirmware-compile/detail/PR-13745/1/pipeline: We might as well drop the frame-larger-than warning, I don't think it's ever really helped. |
The SITL test failures looks real. |
by keeping only recursive topics in there. The rest is checked by looking at previous _subscriptions. Reduces stack size requirements when increasing MAX_TOPICS_NUM.
Keep a fixed-size array of 250 requested topics on the stack, then allocate an array with LoggerSubscription with the exact required size.
0981130
to
b38cbf5
Compare
b38cbf5
to
ac9db19
Compare
Yeah, especially since it is a false positive.
Not sure what that was. I moved the subscriptions into a separate class. |
Tested on Pixhawk 4 v5 f450 log: |
Tested on PixRacer V4: Maximum wind 10.2 m/sModes Tested Position Mode: Good. - Procedure Notes: Log: https://review.px4.io/plot_app?log=719ab88b-d993-47c8-a9ca-eaf429d4577e |
Thanks for testing. |
Fixes errors like
Too many subscriptions, failed to add: sensor_selection 0
.See commits for details.
Memory usage is about the same, but depends now on the logging profile configuration.