-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Add component information client and server #1660
Conversation
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.
Nice!
f0e481a
to
31c5fcb
Compare
121dbab
to
1199346
Compare
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.
Looking good so far!
ca6f366
to
a71e779
Compare
77b1081
to
4b76fb1
Compare
dd99a8a
to
eddbd5e
Compare
This allows us to re-use it.
This was straight forward and long overdue.
And use it in ping as well as offboard plugin.
That way we can re-use it in the component information server plugin.
I don't think it is really possible to use the REQUEST_MESSAGE command without a target_component set. If we were to send out REQUEST_MESSAGE with target_component set to 0 (broadcast) it would open up a race between various components that do support it or don't support it. All of these would respond and it would be tricky to know how to handle all the acks. Therefore, I decided to send out these REQUEST_MESSAGE commands with a target instead. This means that in component_information we will ultimately have to go through all connected components one by one to figure out what is there.
Found using valgrind.
Every 1% is enough, otherwise we just clog everything with callbacks.
This is a first step to enable downloading the component_information xml files end to end.
Just for convenience.
This is required for GCC 7 compatibility.
1f2a222
to
ab2930b
Compare
abad2f4
to
085815b
Compare
085815b
to
90e4558
Compare
Now that the component information changes have been merged.
I think this is somewhat contained and should not be interfering with the rest too much, so I'm merging it as in its current prototype state. I'm not sure why CI takes so long and times out. 🤷♂️ |
Depends on mavlink/MAVSDK-Proto#270.
Probably best reviewed commit by commit.