implement recv_raw
for Connection wrappers into mavlink-core
#286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(depends on #284)
So, my goal is to have some sort of way to fetch raw messages from the connection wrappers (
AsyncMavConnection
,MavConnection
) directly, without having to do the extra-step of providing a type and converting between and vice-versa.At the moment,
recv
will always use the genericM
.Another thing I was planning was to somehow allow connections without knowing the message type
M
, but this looks a bit harder to implement (and probably impossible because dialect must be known at compile-time?).I've already implemented for
AsyncMavConnection
and its protocols (udp
,tcp
,direct-serial
,file
):I've also implemented a small example (
mavlink-dump-raw-async
), which already shows how this can be used withasync
.I want to ask if this is a good idea and if possible, to open discussion on this topic here.