mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 07:23:35 +08:00
increase optical flow buffer to imu buffer length
This commit is contained in:
committed by
Paul Riseborough
parent
44200e9649
commit
721f5e61a5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user