-
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
px4_work_queue: command line status output and shutdown empty queues #12853
Conversation
81737ad
to
32f2d22
Compare
Adding this to the ulog additional data would be nice, but not immediately required. I won't be offended if someone would like to improve on my printf tree here. |
Removing the interval perf counters in each WorkItem driver/module saved a bit more than 1% cpu on an px4_fmu-v4 (generic quadcopter). |
platforms/common/include/px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp
Outdated
Show resolved
Hide resolved
platforms/common/include/px4_platform_common/px4_work_queue/WorkItem.hpp
Outdated
Show resolved
Hide resolved
* remove unnecessary friend
Currently fitting in fmu-v2 flash again. |
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.
Ship it!
This PR updates the PX4 work queue to keep a list of attached WorkItems. This list is used to iterate all items to get an overall status of the work queues (tree view) and to stop any empty queues.
I've added a new
work_queue
systemcmd to get the status and potentially manually start/stop if we need it later (likely needs work).