Giter Site home page Giter Site logo

Comments (6)

IhsenBouallegue avatar IhsenBouallegue commented on August 20, 2024

ping @wucke13

from async-mavlink.

wucke13 avatar wucke13 commented on August 20, 2024

Hey, we can add a second method that subscribes all. Would you fancy preparing a PR for that?

from async-mavlink.

IhsenBouallegue avatar IhsenBouallegue commented on August 20, 2024

I would be more than happy to implement it, but I would love some pointers and tips as I am new to all of this. That way it doesn't get frustrating and then give up halfway. Let me know what steps I need to take/how the interface should look like. Stuff like pseudo code and/or pointers to certain files that need to be adjusted would be helpful.

from async-mavlink.

IhsenBouallegue avatar IhsenBouallegue commented on August 20, 2024

@wucke13 any ideas?

from async-mavlink.

IhsenBouallegue avatar IhsenBouallegue commented on August 20, 2024

Sadly this project seems abandoned, what a shame 😢

from async-mavlink.

wucke13 avatar wucke13 commented on August 20, 2024

I don't feel no shame 😄
So, to implement this I see three options:

  1. one either has to name every variant of the MavMessage enum for a message set, and subscribe to it. This is extremely tedious.
  2. alter the source code of the original mavlink crate to include an iterator over all variants of said MavMessage enum. That way one does not have to type all the combinations, instead one can benefit from code generation already included in bespoke crate.
  3. Just go through the integer IDs for the subscribing, ignoring errors for unknown IDs.

I would definitely rule out option 1. Option 2. seems to be the technically best solution, but back when I pursued an active interest in this it seemed almost impossible to agree on something with the mavlink maintainers, probably like me they were and/or are short on time. Option three is the quick'n dirty approach.

from async-mavlink.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.