Browse Source

Fuse flow only if it is activated in param LPE_FUSION

sbg
Julien Lecoeur 8 years ago committed by Lorenz Meier
parent
commit
70ccfe80a7
  1. 2
      src/modules/local_position_estimator/BlockLocalPositionEstimator.cpp

2
src/modules/local_position_estimator/BlockLocalPositionEstimator.cpp

@ -279,7 +279,6 @@ void BlockLocalPositionEstimator::update() @@ -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() @@ -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();

Loading…
Cancel
Save