sending custom mavlink messages to qgroundcontrol using pymavlink

840 views
Skip to first unread message

foobarbecue

unread,
Nov 11, 2015, 12:34:02 PM11/11/15
to drones-discuss
I've created a couple of custom mavlink messages and I'm trying to send them to qgroundcontrol using pymavlink. I used mavgenerate.py to build the libraries for python and for C and recompiled qgroundcontrol. I can successfully send the messages to mavproxy and watch them coming in using "watch", but they don't show up in qgroundcontrol.

Any ideas what I might be doing wrong? I'm wondering if this has to do with comp_id or sys_id or something. I've attached the script I'm using to send the messages (multigas_link.py) and the modified dialect file (ardupilotmega.xml) which has two new messages: GAS and DOAS.
multigas_link.py
ardupilotmega.xml

Aaron Curtis

unread,
Nov 11, 2015, 3:36:17 PM11/11/15
to drones-discuss
The problem was that I was using the default sysid of 255, which is the same one that qgroundcontrol uses and for some reason this keeps the message from being displayed. I set it to 1 and everything works!

Fadhil Mochammad

unread,
May 29, 2016, 12:06:51 PM5/29/16
to drones-discuss
I'm also have the sam project as yours. Did you already figure out to solve your problem? Thank you
Reply all
Reply to author
Forward
0 new messages