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

Dashing: Periodically resynchronize time.#34

Merged
ke-sun merged 1 commit into
KumarRobotics:dashingfrom
clalancette:time-resync
Oct 11, 2019
Merged

Dashing: Periodically resynchronize time.#34
ke-sun merged 1 commit into
KumarRobotics:dashingfrom
clalancette:time-resync

Conversation

@clalancette
Copy link
Copy Markdown
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 clalancette@openrobotics.org

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 <clalancette@openrobotics.org>
@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
Copy Markdown
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