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

Check buffer data and not buffer size

parent 91ac5c29
No related branches found
No related tags found
2 merge requests!54devel->main,!50Resolve "Bootstrap sequence"
......@@ -265,7 +265,7 @@ void ProcessorImu::bootstrap()
case ParamsProcessorImu::BootstrapMethod::BOOTSTRAP_G:
{
// Implementation of G strategy.
if (last_ptr_->getBuffer().size() > params_motion_Imu_->bootstrap_averaging_length)
if (last_ptr_->getBuffer().size() - 1 > params_motion_Imu_->bootstrap_averaging_length)
{
// frames:
// w: world global ( where g = [0,0,-9.806] );
......
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