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

Support strobe HMC (Emitter Always On) #12692

Merged
merged 3 commits into from
Feb 26, 2024
Merged

Conversation

Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Feb 21, 2024

Tracked on [RSDEV-1707]
Support laser strobe on HMC
Fix a small Coverity issue
remove a redundant include

@Nir-Az Nir-Az requested review from OhadMeir and SamerKhshiboun and removed request for OhadMeir and SamerKhshiboun February 21, 2024 18:43
command cmd( _hmc_set_opcode );
// reverse logic legacy <> new opcode as we query `LASERONCONST` vs 'APM_STROBE_ON' and return 'EMITTER_ALWAYES_ON'
bool always_on = _is_legacy ? value : ( value != 1.0f );
cmd.param1 = static_cast<int>(always_on);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not cast directly to uint32_t?

Copy link
Collaborator 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 51e4c64 into IntelRealSense:development Feb 26, 2024
16 of 17 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.

2 participants