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

lpe: mocap and vision: set common ref timestamp

parent 7629075c
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ void BlockLocalPositionEstimator::mocapInit()
// get reference for global position
globallocalconverter_getref(&_ref_lat, &_ref_lon, &_ref_alt);
_global_ref_timestamp = hrt_absolute_time();
_global_ref_timestamp = _timeStamp;
_is_global_cov_init = globallocalconverter_initialized();
if (!_map_ref.init_done && _is_global_cov_init && !_visionUpdated) {
......
......@@ -43,7 +43,7 @@ void BlockLocalPositionEstimator::visionInit()
// get reference for global position
globallocalconverter_getref(&_ref_lat, &_ref_lon, &_ref_alt);
_global_ref_timestamp = hrt_absolute_time();
_global_ref_timestamp = _timeStamp;
_is_global_cov_init = globallocalconverter_initialized();
if (!_map_ref.init_done && _is_global_cov_init) {
......
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