Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Dashing: Periodically resynchronize time. #34

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

clalancette
Copy link
Collaborator

We are currently using the device timestamps to determine the
"local" time that should be attached to the reading. This
works for a while, but since the crystal on the IMU and the
crystal on the local machine are separate, they eventually
drift apart. Fix this by periodically resynchronizing between
the local time and the device time. There will always be
some difference between them, but with the algorithm implemented
here we know that that difference will be <= 1000/imu_rate (and
usually will be a lot less).

This should supersede #30 and fix #25

Signed-off-by: Chris Lalancette [email protected]

We are currently using the device timestamps to determine the
"local" time that should be attached to the reading.  This
works for a while, but since the crystal on the IMU and the
crystal on the local machine are separate, they eventually
drift apart.  Fix this by periodically resynchronizing between
the local time and the device time.  There will always be
some difference between them, but with the algorithm implemented
here we know that that difference will be <= 1000/imu_rate (and
usually will be a lot less).

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette clalancette changed the title Periodically resynchronize time. Dashing: Periodically resynchronize time. Oct 9, 2019
@ke-sun ke-sun merged commit 074c624 into KumarRobotics:dashing Oct 11, 2019
@clalancette
Copy link
Collaborator Author

Thanks for merging!

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

Successfully merging this pull request may close these issues.

2 participants