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 15, 2024
1 parent 5b08c4f commit f0e4e89
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 f0e4e89

Please sign in to comment.