diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-13 18:26:59 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-12-14 12:10:28 +0100 |
commit | 8fd9f98904c977b1bc41a98b07acb123c976cbac (patch) | |
tree | a22de03da452c60dd27ba6a5c3364e15292fef4d /src/drivers/sf0x | |
parent | 8ebe463f16326c345f5aeb36738c91b5cf33f1b3 (diff) | |
download | px4-firmware-8fd9f98904c977b1bc41a98b07acb123c976cbac.tar.gz px4-firmware-8fd9f98904c977b1bc41a98b07acb123c976cbac.tar.bz2 px4-firmware-8fd9f98904c977b1bc41a98b07acb123c976cbac.zip |
sf0x: write min and max to report
Diffstat (limited to 'src/drivers/sf0x')
-rw-r--r-- | src/drivers/sf0x/sf0x.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/sf0x/sf0x.cpp b/src/drivers/sf0x/sf0x.cpp index 45375493e..4301750f0 100644 --- a/src/drivers/sf0x/sf0x.cpp +++ b/src/drivers/sf0x/sf0x.cpp @@ -564,6 +564,8 @@ SF0X::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 = valid && (si_units > get_minimum_distance() && si_units < get_maximum_distance() ? 1 : 0); /* publish it */ |