mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
Fuse flow only if it is activated in param LPE_FUSION
This commit is contained in:
committed by
Lorenz Meier
parent
a64e9bfa03
commit
70ccfe80a7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user