Created
March 29, 2017 23:20
-
-
Save SamuelDudley/f3161b2280f2cedac4a315a568ab2f82 to your computer and use it in GitHub Desktop.
Proposed message definition for new ArduPilot TIMESYNC message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Round trip time synchronization message --> | |
<message id="TBD" name="TIME_SYNC_NTP"> | |
<description>Time synchronization message based on NTP implementation</description> | |
<field name="target_system" type="uint8_t">System ID</field> | |
<field name="target_component" type="uint8_t">Component ID</field> | |
<field type="uint64_t" name="t1_usec">Time sync timestamp 1 (microseconds)</field> | |
<field type="uint64_t" name="t2_usec">Time sync timestamp 2 (microseconds)</field> | |
<field type="uint64_t" name="t3_usec">Time sync timestamp 3 (microseconds)</field> | |
<field type="uint64_t" name="t4_usec">Time sync timestamp 4 (microseconds)</field> | |
<field type="uint8_t" name="mode">0: Basic symmetric mode (default), 1: Interleaved symmetric mode</field> | |
</message> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useful info: https://www.eecis.udel.edu/~mills/onwire.html
offset = [(T2 - T1) + (T3 - T4)] / 2
delay = (T4 - T1) - (T3 - T2)
Basic Symmetric Mode
Interleaved Symmetric Mode