Skip to content

Commit

Permalink
Fuse flow only if it is activated in param LPE_FUSION
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Lecoeur authored and LorenzMeier committed Jun 3, 2017
1 parent a64e9bf commit 70ccfe8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ void BlockLocalPositionEstimator::update()
_lastArmedState = armedState;

// see which updates are available
bool flowUpdated = _sub_flow.updated();
bool paramsUpdated = _sub_param_update.updated();
bool baroUpdated = false;

Expand All @@ -297,6 +296,7 @@ void BlockLocalPositionEstimator::update()
}
}

bool flowUpdated = (_fusion.get() & FUSE_FLOW) && _sub_flow.updated();
bool gpsUpdated = (_fusion.get() & FUSE_GPS) && _sub_gps.updated();
bool visionUpdated = (_fusion.get() & FUSE_VIS_POS) && _sub_vision_pos.updated();
bool mocapUpdated = _sub_mocap.updated();
Expand Down

0 comments on commit 70ccfe8

Please sign in to comment.