You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i am trying to write a little code that will connect via serial and will send some mavlink commands, in the examples i only managed to find how to write once we received something before, since it needs a channel and it seems that in all examples the channel is always took from waiting an event and then using the channel of that event to send back a message, i ll leave a link to an example file to better understand.
I want to send an event even without receiving nothing from the serial port, so i guess i have to create a channel, but what i am not understanding is how to use the channel created by the serial connection if it actually creates one, and if not how to properly create a channel. i ll share my draft code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, i am trying to write a little code that will connect via serial and will send some mavlink commands, in the examples i only managed to find how to write once we received something before, since it needs a channel and it seems that in all examples the channel is always took from waiting an event and then using the channel of that event to send back a message, i ll leave a link to an example file to better understand.
https://github.com/bluenviron/gomavlib/blob/main/examples/endpoint-serial/main.go
I want to send an event even without receiving nothing from the serial port, so i guess i have to create a channel, but what i am not understanding is how to use the channel created by the serial connection if it actually creates one, and if not how to properly create a channel. i ll share my draft code.
thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions