common.xml - PING fix (#2197)

This commit is contained in:
Hamish Willee
2024-12-19 15:39:09 +11:00
committed by GitHub
parent 2f44ceff0f
commit 619947d8bc
+2 -1
View File
@@ -5191,7 +5191,7 @@
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
</message>
<message id="4" name="PING">
<deprecated since="2011-08" replaced_by="SYSTEM_TIME">to be removed / merged with SYSTEM_TIME</deprecated>
<deprecated since="2011-08" replaced_by="TIMESYNC">To be removed / merged with TIMESYNC</deprecated>
<description>A ping message either requesting or responding to a ping. This allows to measure the system latencies, including serial port, radio modem and UDP connections. The ping microservice is documented at https://mavlink.io/en/services/ping.html</description>
<field type="uint64_t" name="time_usec" units="us">Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.</field>
<field type="uint32_t" name="seq">PING sequence</field>
@@ -6183,6 +6183,7 @@
If the response has `target_system==target_component==0` the remote system has not been updated to use the component IDs and cannot reliably timesync; the requestor may report an error.
Timestamps are UNIX Epoch time or time since system boot in nanoseconds (the timestamp format can be inferred by checking for the magnitude of the number; generally it doesn't matter as only the offset is used).
The message sequence is repeated numerous times with results being filtered/averaged to estimate the offset.
See also: https://mavlink.io/en/services/timesync.html.
</description>
<field type="int64_t" name="tc1" units="ns">Time sync timestamp 1. Syncing: 0. Responding: Timestamp of responding component.</field>
<field type="int64_t" name="ts1" units="ns">Time sync timestamp 2. Timestamp of syncing component (mirrored in response).</field>