Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMU frame index jump in D457-Mipi #12965

Merged
merged 9 commits into from
May 29, 2024

Conversation

noacoohen
Copy link
Contributor

@noacoohen noacoohen commented May 27, 2024

Tracked on RSDSO-19645

@noacoohen noacoohen requested review from Nir-Az and OhadMeir May 27, 2024 19:01
src/uvc-sensor.cpp Outdated Show resolved Hide resolved
//Motion stream on uvc is used only for mipi. Stream frame number counts gyro and accel together.
//We override it using 2 seperate counters.
auto pixels = (uint8_t *)f.pixels;
if( pixels[0] == 1 )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment explaining what this and the next if check?
What's inside pixels[0]?
What 1 means?
What 2 means?
Maybe use consts for that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto stream_type= (uint8_t *)f.pixels[0];
if( stream_type == 1 ) // 1 == Accel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Nir-Az Nir-Az merged commit df363cb into IntelRealSense:development May 29, 2024
17 of 18 checks passed
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