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

Small fixes #5977

Merged
merged 2 commits into from
Mar 10, 2020
Merged

Small fixes #5977

merged 2 commits into from
Mar 10, 2020

Conversation

dorodnic
Copy link
Contributor

@dorodnic dorodnic commented Mar 5, 2020

  1. Fix the behavior of "Enable Metadata" button on Windows
  2. Add horizontal and vertical FOV to rs-enumerate-devices

dorodnic added 2 commits March 5, 2020 00:54
Fetch and update each sensor individually instead of once per device
@@ -554,6 +554,9 @@ namespace librealsense
raw_depth_ep->register_xu(depth_xu); // make sure the XU is initialized every time we power the camera

auto depth_ep = std::make_shared<ds5_depth_sensor>(this, raw_depth_ep);

depth_ep->register_info(RS2_CAMERA_INFO_PHYSICAL_PORT, filter_by_mi(all_device_infos, 0).front().device_path);
Copy link
Collaborator

Choose a reason for hiding this comment

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

filter_by_mi() was already called in line 545. Maybe you can keep result in var then can reuse... I couldn't find any function of uvc_device to get the device path, but maybe there is and then you can use depth_devices?

@@ -148,7 +148,7 @@ namespace librealsense
depth_ep->register_option(RS2_OPTION_GLOBAL_TIME_ENABLED, enable_global_time_option);
depth_ep->get_option(RS2_OPTION_GLOBAL_TIME_ENABLED).set(0);


depth_ep->register_info(RS2_CAMERA_INFO_PHYSICAL_PORT, filter_by_mi(all_device_infos, 0).front().device_path);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

@dorodnic dorodnic merged commit 7f2474d into IntelRealSense:development Mar 10, 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.

2 participants