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

Improve voteForKf()

parent f482fba0
No related branches found
No related tags found
1 merge request!145Imu improvements
......@@ -39,20 +39,22 @@ bool ProcessorIMU::voteForKeyFrame()
// time span
if (getBuffer().get().back().ts_ - getBuffer().get().front().ts_ > max_time_span_)
{
WOLF_DEBUG( "PM: vote: time span" );
return true;
}
// buffer length
if (getBuffer().get().size() > max_buff_length_)
{
WOLF_DEBUG( "PM: vote: buffer length" );
return true;
}
/*// angle turned
Scalar angle = 2.0 * acos(delta_integrated_(6));
// angle turned
Scalar angle = 2.0 * asin(delta_integrated_.segment(4,3).norm());
if (angle > angle_turned_)
{
WOLF_DEBUG( "PM: vote: angle turned" );
return true;
}*/
}
//WOLF_DEBUG( "PM: do not vote" );
return false;
}
......
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