mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 11:08:54 +08:00
mb12xx: write min and max to report
This commit is contained in:
committed by
Lorenz Meier
parent
642b2088c3
commit
682f30afe6
@@ -520,6 +520,8 @@ MB12XX::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();
|
||||
report.valid = si_units > get_minimum_distance() && si_units < get_maximum_distance() ? 1 : 0;
|
||||
|
||||
/* publish it, if we are the primary */
|
||||
|
||||
Reference in New Issue
Block a user