Skip to content

Commit

Permalink
lpe: fix checking for sane pitch/roll in flow correction
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed May 21, 2019
1 parent 6a44e9b commit 6b8d40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/local_position_estimator/sensors/flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void BlockLocalPositionEstimator::flowInit()
int BlockLocalPositionEstimator::flowMeasure(Vector<float, n_y_flow> &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;
}

Expand Down

0 comments on commit 6b8d40d

Please sign in to comment.