How to Use a Proxy to Transmit MAVLink Data #254
Replies: 1 comment
|
In order to convert messages into binary data, you can use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
pkg :github.com/bluenviron/gomavlib/v3 v3.3.0
I am not using the general TCP/UDP protocols directly, but adopting other transport protocols for data transmission. I would like to ask if there is any function or method available to convert Message() message.Message type data into binary data for MAVLink. I intend to transmit this binary data via a private proprietary protocol. I cannot accept converting Message() message.Message data into JSON format, as this conversion is too slow and occupies excessive bandwidth.
for {
select {
case evt := <-p.node.Events():
switch ev := evt.(type) {
case *gomavlib.EventFrame:
//I want to convert the data from ev.Message() into binary data.
return ev.Message(), nil
All reactions