ekf_att_pos_estimator: adapted to change in distance_sensor msg

This commit is contained in:
Ban Siesta 2015-05-24 15:58:15 +01:00
parent 0128fef8e0
commit 13a4cdd05e
1 changed files with 1 additions and 1 deletions

View File

@ -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;