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

Fix PrcImu constructor (was creating another params object)

parent 88bc0838
No related branches found
No related tags found
2 merge requests!54devel->main,!50Resolve "Bootstrap sequence"
......@@ -31,7 +31,7 @@ namespace wolf {
ProcessorImu::ProcessorImu(ParamsProcessorImuPtr _params_motion_imu) :
ProcessorMotion("ProcessorImu", "POV", 3, 10, 10, 9, 6, 6, _params_motion_imu),
params_motion_Imu_(std::make_shared<ParamsProcessorImu>(*_params_motion_imu))
params_motion_Imu_(_params_motion_imu)
{
bootstrapping_ = params_motion_Imu_->bootstrap_enable;
list_fac_inactive_bootstrap_.clear();
......@@ -55,6 +55,7 @@ bool ProcessorImu::voteForKeyFrame() const
return true;
}
// buffer length
WOLF_INFO("buff size: ", getBuffer().size(), " max: ", params_motion_Imu_->max_buff_length);
if (getBuffer().size() > params_motion_Imu_->max_buff_length)
{
WOLF_DEBUG( "PM: vote: buffer length" );
......
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