forked from Archive/PX4-Autopilot
ekf_att_pos_estimator: adapted to change in distance_sensor msg
This commit is contained in:
parent
0128fef8e0
commit
13a4cdd05e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue