mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
lpe: mocap and vision: set common ref timestamp
This commit is contained in:
@@ -38,7 +38,7 @@ void BlockLocalPositionEstimator::mocapInit()
|
|||||||
|
|
||||||
// get reference for global position
|
// get reference for global position
|
||||||
globallocalconverter_getref(&_ref_lat, &_ref_lon, &_ref_alt);
|
globallocalconverter_getref(&_ref_lat, &_ref_lon, &_ref_alt);
|
||||||
_global_ref_timestamp = hrt_absolute_time();
|
_global_ref_timestamp = _timeStamp;
|
||||||
_is_global_cov_init = globallocalconverter_initialized();
|
_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) {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ void BlockLocalPositionEstimator::visionInit()
|
|||||||
|
|
||||||
// get reference for global position
|
// get reference for global position
|
||||||
globallocalconverter_getref(&_ref_lat, &_ref_lon, &_ref_alt);
|
globallocalconverter_getref(&_ref_lat, &_ref_lon, &_ref_alt);
|
||||||
_global_ref_timestamp = hrt_absolute_time();
|
_global_ref_timestamp = _timeStamp;
|
||||||
_is_global_cov_init = globallocalconverter_initialized();
|
_is_global_cov_init = globallocalconverter_initialized();
|
||||||
|
|
||||||
if (!_map_ref.init_done && _is_global_cov_init) {
|
if (!_map_ref.init_done && _is_global_cov_init) {
|
||||||
|
|||||||
Reference in New Issue
Block a user