Skip to content
Snippets Groups Projects
Commit 70ccfe80 authored by Julien Lecoeur's avatar Julien Lecoeur Committed by Lorenz Meier
Browse files

Fuse flow only if it is activated in param LPE_FUSION

parent a64e9bfa
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment