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

Disabling hdr while updating exposure & gain values #2934

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

Arun-Prasad-V
Copy link
Contributor

@Arun-Prasad-V Arun-Prasad-V commented Nov 21, 2023

Tracked on LRS-962

Overview:

  • On FW versions 5.13.0.50 and below, the FW allowed to set the preset values (like exposure, gain, etc) when HDR is enabled.
  • But in later FW versions 5.14.x.x and above, updating preset values are restricted when HDR is enabled.
  • This FW change affected the ROS wrapper's flow for setting the exposure and gain of sequence IDs 1 & 2 (during launch time) through below params:
    • depth_module.exposure.1
    • depth_module.gain.1
    • depth_module.exposure.2
    • depth_module.gain.2

This PR makes sure that the HDR is disabled while setting those params during launch time.

During runtime, if the HDR is enabled, the presets cannot be updated. To update them, should disable HDR first and then try.

@Nir-Az
Copy link
Collaborator

Nir-Az commented Dec 4, 2023

@Arun-Prasad-V I think we are OK with this fix,

about this
If the user wants to update any presets dynamically, its users responsibility to disable the HDR first and then update the presets.
Is it possible to add a ROS log warning if the user try to change it when HDR is enabled?
If it breaks the generic code we can try to count on LibRS warning.
We might want to rephrase it and say it is not supported.
thoughts?

@Nir-Az
Copy link
Collaborator

Nir-Az commented Dec 15, 2023

So this PR is ready to be merged?
No more “stall” on librs set option exceptions?
I am not sure what fixed it.

@Arun-Prasad-V
Copy link
Contributor Author

So this PR is ready to be merged? No more “stall” on librs set option exceptions? I am not sure what fixed it.

The stall was happening during INIT, because HDR was not disabled while updating the exp & gain of seq_ids 1&2.
The logic to disable first -> update exp & gain -> enable back fixed the stall.

@Nir-Az Nir-Az merged commit 734f92a into IntelRealSense:ros2-development Dec 15, 2023
6 checks passed
@Arun-Prasad-V Arun-Prasad-V deleted the hdr_enabled branch January 31, 2024 05:33
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