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

Threaded PixhawkInstruction publishing from buttons #6

Open
benjaminwp18 opened this issue Oct 5, 2024 · 0 comments
Open

Threaded PixhawkInstruction publishing from buttons #6

benjaminwp18 opened this issue Oct 5, 2024 · 0 comments

Comments

@benjaminwp18
Copy link
Contributor

The robot needs more than a single PixhawkInstruction to change its motion. On the actual codebase, we publish PixhawkInstructions continuously because the controller publishes state messages continuously.

To get bootcamp solutions working on the robot, I had to change their publishing functions to publish multiple (5-10) messages, sleeping in between. Doing that on the GUI thread freezes cam streams (not good). Doing that in a separate thread with Python (stackoverflow; don't use thread.join) doesn't freeze anything, but doesn't match how we do it in prod (okay).

Either use that threaded solution or figure out a different one that allows for continuous publishing.

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

No branches or pull requests

1 participant