Closed clydemcqueen closed 1 year ago
Hi @clydemcqueen thanks for checking it! I was able to replicate the problem and will take a look into it. I was in a conference, thanks for your patience.
Hi @clydemcqueen, from my tests I got it working while using mavlink2rest with mavlink 1, the default for the project is 2.
./mavlink2rest --verbose --connect udpin:127.0.0.1:14550 --mavlink 1
I was not able to find a function in pymavlink to set the mavlink version to be used, but it appears that is using mavlink 1 here.
@patrickelectric Thanks so much for tracking this down!
I was able to send mavlink wire protocol 2 messages by setting an environment variable:
import os
os.environ['MAVLINK20'] = '1'
from pymavlink import mavutil
A little funky (triggers E402 error from pycodestyle.py) but AFAICT this is the only supported way to specify mavlink wire protocol 2.
I'll close this out.
Hi Clyde, thanks for letting me know!
Can I use mavlink2rest to view a very simple message stream, e.g., just HEARTBEAT messages?
I am sending HEARTBEAT msgs via pymavlink:
When I try to recieve these using mavlink2rest nothing shows up:
Is there some handshake that I am missing?