From 13a4cdd05e59cbce249c259bf553a08be2e43475 Mon Sep 17 00:00:00 2001 From: Ban Siesta Date: Sun, 24 May 2015 15:58:15 +0100 Subject: [PATCH] ekf_att_pos_estimator: adapted to change in distance_sensor msg --- .../ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp index 3c3e2d2f35..c04d79f4e7 100644 --- a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp +++ b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp @@ -1475,7 +1475,7 @@ void AttitudePositionEstimatorEKF::pollData() if ((_distance.current_distance > _distance.min_distance) && (_distance.current_distance < _distance.max_distance)) { _ekf->rngMea = _distance.current_distance; - _distance_last_valid = _distance.time_boot_ms; + _distance_last_valid = _distance.timestamp; } else { _newRangeData = false;