Skip to content
Snippets Groups Projects
Commit 7629075c authored by TSC21's avatar TSC21 Committed by Lorenz Meier
Browse files

lpe: sensors: mocap: fix global ref init logic

parent f1e0310d
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ void BlockLocalPositionEstimator::mocapInit()
_global_ref_timestamp = hrt_absolute_time();
_is_global_cov_init = globallocalconverter_initialized();
if (!_map_ref.init_done && _is_global_cov_init && _visionUpdated) {
if (!_map_ref.init_done && _is_global_cov_init && !_visionUpdated) {
// initialize global origin using the mocap estimator reference (only if the vision estimation is not being fused as well)
mavlink_and_console_log_info(&mavlink_log_pub, "[lpe] global origin init (mocap) : lat %6.2f lon %6.2f alt %5.1f m",
double(_ref_lat), double(_ref_lon), double(_ref_alt));
......
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