Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
increase optical flow buffer to imu buffer length
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Dai authored and priseborough committed Jan 16, 2019
1 parent 44200e9 commit 721f5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EKF/estimator_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ void EstimatorInterface::setOpticalFlowData(uint64_t time_usec, flow_message *fl

// Allocate the required buffer size if not previously done
// Do not retry if allocation has failed previously
if (_flow_buffer.get_length() < _obs_buffer_length) {
_flow_buffer_fail = !_flow_buffer.allocate(_obs_buffer_length);
if (_flow_buffer.get_length() < _imu_buffer_length) {
_flow_buffer_fail = !_flow_buffer.allocate(_imu_buffer_length);

if (_flow_buffer_fail) {
ECL_ERR("EKF optical flow buffer allocation failed");
Expand Down

0 comments on commit 721f5e6

Please sign in to comment.