From 980c3bc6a7db0f728811cdee2c0062845e184e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 3 Feb 2017 10:33:00 +0100 Subject: [PATCH] temperature_calibration: notify system about param changes --- src/modules/events/temperature_calibration/task.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/events/temperature_calibration/task.cpp b/src/modules/events/temperature_calibration/task.cpp index 1b7fda8a26..7f50fd4d55 100644 --- a/src/modules/events/temperature_calibration/task.cpp +++ b/src/modules/events/temperature_calibration/task.cpp @@ -46,6 +46,8 @@ #include #include +#include + #include "common.h" #include "temperature_calibration.h" #include "accel.h" @@ -168,6 +170,11 @@ void TemperatureCalibration::task_main() calibrators[i]->reset_calibration(); } + // make sure the system updates the changed parameters + param_notify_changes(); + + usleep(300000); // wait a bit for the system to apply the parameters + hrt_abstime next_progress_output = hrt_absolute_time() + 1e6; while (!_force_task_exit) {