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

D555 imu record playback #13519

Merged

Conversation

remibettan
Copy link
Contributor

Tracked by: RSDEV-2858

@remibettan remibettan requested a review from OhadMeir November 18, 2024 10:18
@@ -518,6 +520,24 @@ namespace librealsense
data[2] = static_cast<float>(msg->angular_velocity.z);
LOG_DEBUG("RS2_STREAM_GYRO " << motion_frame);
}
if (stream_id.stream_type == RS2_STREAM_MOTION)
{
auto data = reinterpret_cast<double*>(motion_frame->data.data());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we cast to const rs2_combined_motion* like the writer?

Copy link
Contributor

@OhadMeir OhadMeir Nov 18, 2024

Choose a reason for hiding this comment

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

Better to use same type for both reading and writing

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
Copy link
Collaborator

Nir-Az commented Nov 18, 2024

Is this PR depend on FW change?

@OhadMeir
Copy link
Contributor

Is this PR depend on FW change?

No, we just did not support the combined motion type in LibRS for recordings. Older FW will work too.

@OhadMeir
Copy link
Contributor

@remibettan, please fix the tests failures before merging. test-live-rec-play-record-software-device failed on several machines.

@remibettan remibettan force-pushed the d555_imu_record_playback branch from 398a934 to 82b51b1 Compare November 19, 2024 07:57
@OhadMeir OhadMeir merged commit f8f2b49 into IntelRealSense:development Nov 19, 2024
23 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