mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 01:14:07 +08:00
ll40ls: write min and max to report
This commit is contained in:
parent
0575f67300
commit
b6b80dcac1
@ -581,6 +581,8 @@ LL40LS::collect()
|
||||
report.timestamp = hrt_absolute_time();
|
||||
report.error_count = perf_event_count(_comms_errors);
|
||||
report.distance = si_units;
|
||||
report.minimum_distance = get_minimum_distance();
|
||||
report.maximum_distance = get_maximum_distance();
|
||||
if (si_units > get_minimum_distance() && si_units < get_maximum_distance()) {
|
||||
report.valid = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user