Skip to content

Fix sporadic spinning bug in rs-motion.cpp - #7500

Merged
ev-mp merged 2 commits into
realsenseai:developmentfrom
krazycoder2k:master
Oct 8, 2020
Merged

Fix sporadic spinning bug in rs-motion.cpp#7500
ev-mp merged 2 commits into
realsenseai:developmentfrom
krazycoder2k:master

Conversation

@krazycoder2k

@krazycoder2k krazycoder2k commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

If the first gyro frame is received before the first accel frame the "first" flag is cleared and the timestamp value is incorrect. This separates the flags to be method specific.
Addresses #4915

On instances where the first accelerometer frame arrives before the first gyro frame the "first" flag is set to false by process_accel which causes the first call to process_gryo to calculate the wrong ts value.
@dorodnic
dorodnic changed the base branch from master to development October 6, 2020 09:11
@dorodnic

dorodnic commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

Thanks @krazycoder2k :)

@ev-mp
ev-mp merged commit a568d3a into realsenseai:development Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants