diff --git a/src/modules/local_position_estimator/sensors/flow.cpp b/src/modules/local_position_estimator/sensors/flow.cpp index f087b782124a..a15cf27cf9de 100644 --- a/src/modules/local_position_estimator/sensors/flow.cpp +++ b/src/modules/local_position_estimator/sensors/flow.cpp @@ -34,7 +34,7 @@ void BlockLocalPositionEstimator::flowInit() int BlockLocalPositionEstimator::flowMeasure(Vector &y) { // check for sane pitch/roll - if (_eul(0) > 0.5f || _eul(1) > 0.5f) { + if (fabs(_eul(0)) > 0.5f || fabs(_eul(1)) > 0.5f) { return -1; }