diff --git a/src/modules/ekf2/EKF/estimator_interface.cpp b/src/modules/ekf2/EKF/estimator_interface.cpp index 04879dfd92..05b67deac2 100644 --- a/src/modules/ekf2/EKF/estimator_interface.cpp +++ b/src/modules/ekf2/EKF/estimator_interface.cpp @@ -364,6 +364,7 @@ void EstimatorInterface::setOpticalFlowData(const flowSample &flow) flowSample optflow_sample_new{flow}; optflow_sample_new.time_us = time_us; + optflow_sample_new.gyro_xyz.setNaN(); _flow_buffer->push(optflow_sample_new);