-
Notifications
You must be signed in to change notification settings - Fork 140
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
How is TIMESYNC supposed to be used? #194
Comments
Good question. |
@mhkabir I see you provided the PX4 implementation of TIMESYNC MAVLink message. Can you help confirm behaviour? I infer from the source:
Steps
Looking at PX4 implementation there is some code I don't understand. But I assume that the calculated offset can vary over time and this does work to keep the sync accurate? ie it discards messages with too great RTT, and also accumulates values to make sure that the estimate and observed offsets are similar - and some sort of filtering?. @mhkabir perhaps you can explain how/why this stuff works? Is that about right? This message is broadcast. How do you know that a response is to "your" timesync and not from some other random system? |
From @mhkabir
|
Any update ? This message is pretty important and there is no documentation or comments around the code that could explain the use case and functionality. |
@patrickelectric The #194 (comment) above explains how it estimates the functionality. Kabir confirms this is correct. |
How and when is the TIMESYNC message supposed to be used - insufficient documentation to guess.
The underlying use case that this query originates from is in mavlink/MAVSDK#798, where the user wanted a GPS timestamp in order to be able to sync a swarm of drones.
The text was updated successfully, but these errors were encountered: