From bbc104ad4c6ee13fb6f101650ec35b3d19382ecf Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 5 Jun 2018 22:06:43 +0200 Subject: [PATCH] Added missing fields to IST8310 mag report. --- src/drivers/magnetometer/ist8310/ist8310.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/magnetometer/ist8310/ist8310.cpp b/src/drivers/magnetometer/ist8310/ist8310.cpp index 95c7402f2a..457ec56a85 100644 --- a/src/drivers/magnetometer/ist8310/ist8310.cpp +++ b/src/drivers/magnetometer/ist8310/ist8310.cpp @@ -910,6 +910,7 @@ IST8310::collect() new_report.timestamp = hrt_absolute_time(); new_report.is_external = sensor_is_external; new_report.error_count = perf_event_count(_comms_errors); + new_report.range_ga = 1.6f; // constant for this sensor for x and y new_report.scaling = _range_scale; new_report.device_id = _device_id.devid;