Skip to content

Commit

Permalink
Merge pull request #28 from vbandi/master
Browse files Browse the repository at this point in the history
Fixes center for long throw depth cam
  • Loading branch information
petergu684 committed Mar 24, 2023
2 parents 6df98e9 + a378484 commit 3775280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HL2UnityPlugin/HL2ResearchMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ namespace winrt::HL2UnityPlugin::implementation
&& pointCloud.size() >= 3)
{
pHL2ResearchMode->m_centerDepth = depth;
if (depth > pHL2ResearchMode->depthCamRoi.depthNearClip && depth < pHL2ResearchMode->depthCamRoi.depthFarClip)
if (depth > 200)
{
std::lock_guard<std::mutex> l(pHL2ResearchMode->mu);
pHL2ResearchMode->m_centerPoint[0] = *(pointCloud.end() - 3);
Expand Down

0 comments on commit 3775280

Please sign in to comment.