-
Notifications
You must be signed in to change notification settings - Fork 94
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
Updated proto pb_plugin
#347
base: main
Are you sure you want to change the base?
Conversation
Not sure if this is just my IDE going haywire or is a legit issue, but
Even though the protobuf plugin header file seems to contain it |
It looks like a breaking change from protobuf. |
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.
I haven't tried it but it looks good to me 😇
Added a new commit to fix circular imports bugs + removed relative import. Renamed a few files as well ( |
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.
I don't know much about this all but from far away it passes the squint test :).
I would say we merge this and the dependent PRs towards MAVSDK v3.
👍. Agreed, btw do we have a milestone or project layout for Mavsdk v3 and it's focus? Meaning the major things that are to be accomplished? I've been using rust mavlink for a while now and have a few ideas that could help improve Mavsdk overall |
Nice 🚀!
My cpp isn't too sharp, so I am still studying the codebase (albeit slowly) but I have a hunch that the communication process can be improved to allow for more seamless data transfer. Thx |
Hmm it's an async generator in asyncio, it is supposed to "hang" until it receives an event. Not sure if I understand your point correctly. What else would you have an async generator do? Until it returns, it has to "hang" until it receives the next event 🤔. If you need to run multiple async generators in parallel, you can put them in their own coroutine, like e.g. in the mission example. I don't know why there was a |
How would I leverage gRPC streams in that kind of situation (without resorting to new generators for every event? Looking at the v3 milestone, most of my suggestions are already penned down, that would be all from me ❤️ |
I haven't seen your code base, but my guess is that you want to poll for the drone state (instead of receiving events in the async generator). What I would do in that case is some kind of Some quick pseudo-code:
From the outside you run Would that help? |
Whilst attempting to fix issues within MAVSDK-Python outlined here, I noticed dependency conflicts arising from the fact that the
pb_plugin
utilises very old versions ofprotobuf
.Updated those dependencies and formatted the project. Also fixed a few failing tests