Skip to content

Commit

Permalink
set sync threshold properly
Browse files Browse the repository at this point in the history
  • Loading branch information
borongyuan committed Feb 2, 2024
1 parent fa08fe2 commit 6fe7283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/src/camera/CameraDepthAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ bool CameraDepthAI::init(const std::string & calibrationFolder, const std::strin
stereo->rectifiedRight.link(sync->inputs["right"]);
}

sync->setSyncThreshold(std::chrono::milliseconds(100));
sync->setSyncThreshold(std::chrono::milliseconds(int(500 / monoLeft->getFps())));
sync->out.link(xoutCamera->input);

if(imuPublished_)
Expand Down

0 comments on commit 6fe7283

Please sign in to comment.