Skip to content

IMU frame index jump in D457-Mipi - #12965

Merged
Nir-Az merged 9 commits into
realsenseai:developmentfrom
noacoohen:IMU_frame_index_fix_mipi
May 29, 2024
Merged

IMU frame index jump in D457-Mipi#12965
Nir-Az merged 9 commits into
realsenseai:developmentfrom
noacoohen:IMU_frame_index_fix_mipi

Conversation

@noacoohen

@noacoohen noacoohen commented May 27, 2024

Copy link
Copy Markdown
Contributor

Tracked on RSDSO-19645

@noacoohen
noacoohen requested review from Nir-Az and OhadMeir May 27, 2024 19:01
Comment thread src/uvc-sensor.cpp
Comment thread src/uvc-sensor.cpp Outdated
Comment thread src/uvc-sensor.cpp Outdated
//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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 realsenseai:development May 29, 2024
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