-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
PX4 Ping Message Protocol #9233
Comments
Doesn't this just need the time and sequence filled in before broadcast? |
Yep. And a way to expose ping stats via I already have a working branch for this. Let me share it via a PR after some cleanup. |
Hi, @mhkabir, |
You can send a PING message with 0 and then check the returned PING for the sysid of the UAV you are interested in. |
I see. Thanks! |
WIP branch is here : https://github.com/PX4/Firmware/tree/pr-ping-protocol. QGC does not seem to respond to pings, so I need help on that side to add support for returning pings. @DonLakeFlyer How hard would it be to add a PING response functionality in QGC? |
Implemented. |
Inspired by #6721, has someone implemented the complete PING protocol among PX4s and QGC? The current code does only a part of the job: https://github.com/PX4/Firmware/blob/master/src/modules/mavlink/mavlink_receiver.cpp#L1718-L1728
According to the spec in http://mavlink.org/messages/common#PING, a ping message should be either requesting or responding to a ping. This allows to measure the system latencies, including serial port, radio modem and UDP connections. It is particularly useful when multiple UAVs and PX4s are flying in a swarm formation. Given the fact that more and more people are interested in multiple-UAVs, could someone please take the lead and implement the complete protocol? Thank you very much in advance!
The text was updated successfully, but these errors were encountered: