Skip to content
Snippets Groups Projects
Commit 75eaf84a authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Improve checking time span for voting KF

parent 3e152202
No related branches found
No related tags found
2 merge requests!54devel->main,!50Resolve "Bootstrap sequence"
......@@ -49,7 +49,7 @@ void ProcessorImu::preProcess()
bool ProcessorImu::voteForKeyFrame() const
{
// time span
if (getBuffer().back().ts_ - getBuffer().front().ts_ > params_motion_Imu_->max_time_span - params_motion_Imu_->time_tolerance)
if (getBuffer().back().ts_ - getBuffer().front().ts_ >= params_motion_Imu_->max_time_span - Constants::EPS)
{
WOLF_DEBUG( "PM: vote: time span" );
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment