Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAVlink Forwarding - System not detected #1572

Open
evanatherton1 opened this issue Oct 12, 2021 · 3 comments
Open

MAVlink Forwarding - System not detected #1572

evanatherton1 opened this issue Oct 12, 2021 · 3 comments
Labels

Comments

@evanatherton1
Copy link

I am currently trying to forward MAVlink messages from QGroundControl to a Raspberry Pi. I'm using MAVSDK to listen to a specific UDP port:

ConnectionResult conn_result = mavsdk.add_any_connection("udp://:14445");

The program doesn't seem to recognize the vehicle. Specifically, mavsdk.systems().size() always equals 0. In QGC, I enabled mavlink forwarding and specified the IP address of the pi and UDP port. Both devices are able to ping each other. Has anybody encountered this issue?

@julianoes
Copy link
Collaborator

By the way, you can also forward using MAVSDKS by adding the argument with the ForwardingOption.
https://mavsdk.mavlink.io/main/en/cpp/api_reference/classmavsdk_1_1_mavsdk.html#classmavsdk_1_1_mavsdk_1aa43dfb00d5118d26ae5aabd0f9ba56b2

I enabled mavlink forwarding and specified the IP address of the pi and UDP port.

So, you set it to e.g. 192.168.1.42:14445? That all seems like it's correct. I can recommend using Wireshark to check if the packages are forwarded correctly.

@evanatherton1
Copy link
Author

I went ahead and downloaded QGC v4.0.11, and MAVlink forwarding doesn't seem to be available. Is that something that was removed in later versions? If I want to use forwarding on MAVSDK, how do I specify a UDP port in QGC?

@julianoes
Copy link
Collaborator

v4.0.11,

That sounds older. Why not the latest?

how do I specify a UDP port in QGC?

Application Settings -> Comm Links -> Add UDP connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants