-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
IMU frame index jump in D457-Mipi #12965
Conversation
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 ) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Tracked on RSDSO-19645