mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 04:51:35 +08:00
fixed computation of range measurement timestamp
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -241,9 +241,7 @@ void EstimatorInterface::setRangeData(uint64_t time_usec, float *data)
|
|||||||
rangeSample range_sample_new = {};
|
rangeSample range_sample_new = {};
|
||||||
range_sample_new.rng = *data;
|
range_sample_new.rng = *data;
|
||||||
rng = *data;
|
rng = *data;
|
||||||
range_sample_new.time_us -= _params.range_delay_ms * 1000;
|
range_sample_new.time_us = time_usec - _params.range_delay_ms * 1000;
|
||||||
|
|
||||||
range_sample_new.time_us = time_usec;
|
|
||||||
_time_last_range = time_usec;
|
_time_last_range = time_usec;
|
||||||
|
|
||||||
_range_buffer.push(range_sample_new);
|
_range_buffer.push(range_sample_new);
|
||||||
|
|||||||
Reference in New Issue
Block a user