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

Create MavlinkMessage Registerer #4

Open
cb0s opened this issue Sep 12, 2020 · 3 comments
Open

Create MavlinkMessage Registerer #4

cb0s opened this issue Sep 12, 2020 · 3 comments
Assignees
Labels
📄 java Pull requests that update Java code ☝️ question Further information is requested 🌷 enhancement New feature or request

Comments

@cb0s
Copy link
Member

cb0s commented Sep 12, 2020

To manually register all MavlinkMessages and their IDs in the MessageIndex is quite a painful job. This is why I would like to add an automatic registerer. Any ideas how this could be implemented in a good way without mentioning all messages?

@cb0s cb0s transferred this issue from wuespace/telestion-core May 5, 2021
@fussel178 fussel178 added 📄 java Pull requests that update Java code ☝️ question Further information is requested 🌷 enhancement New feature or request labels Aug 6, 2021
@fussel178
Copy link
Member

Well, we have a MavlinkMessageRegistrar verticle to do that by give the package path to the mavlink message type.
Please see #37 for more information.

But the automatic registration still remains. 🤔

@fussel178
Copy link
Member

There are some ways in Java to call a function before the main application starts.
For example, static initializers.
(https://stackoverflow.com/questions/17337744/how-to-execute-a-particular-function-before-main-in-c-and-java)

It can register itself to the MessageIndex, so no more registrar?

What do you think? @cb0s

@cb0s
Copy link
Member Author

cb0s commented Aug 9, 2021

Yeah this looks promising. I will have a look at this next weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📄 java Pull requests that update Java code ☝️ question Further information is requested 🌷 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants