Alex999997
(Alexandros SIDIRAS)
November 3, 2022, 4:10pm
1
Hello,
I have the following setup:
Is there a way to pass a non-mavlink packet through the SiK telemetry ?
I would like for example to turn a led on and off.
Is there a way to do this with mavlink custom messages ? It doesn’t seem they are the purpose of such applications
Thank for the help,
A fellow droner
Hello @Alex999997
I am not an expert on it, but I think that you can use SiK GUI to setup your radios, changing the MAVLink packet to raw, so this way you can send anything you want via radio… but using a custom MAV message would be way more elegant for your solution.
Sure, take a look on this message:
https://mavlink.io/en/messages/common.html#NAMED_VALUE_INT
With this one, you can send for your drone a command, for instance, with the name “LED_CONTROL” and use 1 and 0 for ON/OFF respectively.
2 Likes
Alex999997
(Alexandros SIDIRAS)
November 7, 2022, 1:40pm
3
Hi @BrunoBagarini
Thanks for the hints
I’ll try to implement custom messages then !
Thanks a lot !
1 Like
Good luck man, keep pushing!
lmartim4
(Lucas Martim)
November 17, 2022, 10:54am
5
I’m also very interested on this! Please post here any advances.
Alex999997
(Alexandros SIDIRAS)
February 6, 2023, 4:06pm
6
Hello,
I achieved sending custom messages through my SiK telemetry module.
Here you have some steps in order to achieve this:
Create and build custom dialect for PyMavlink in both Computer and Raspberry Pi (Python (mavgen) · MAVLink Developer Guide )
Import your custom dialect in your script: from pymavlink.dialects.v20 import custom_dialect as pymavlink_custom_dialect
Use your dialect in your script: mavutil.mavlink_connection('udp:127.0.0.1:14550', dialect="custom_dialect")
I’m thinking in writing a short guide soon
2 Likes