From 49890c61f5c98be9aaf5371fb5d29a8168b2a0d6 Mon Sep 17 00:00:00 2001 From: Mohammed Kabir Date: Thu, 25 May 2017 20:28:21 +0200 Subject: [PATCH] sensors : require reboot for all sensor orientation changes --- src/modules/sensors/sensor_params.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c index 1ad31e01fe..15c535f527 100644 --- a/src/modules/sensors/sensor_params.c +++ b/src/modules/sensors/sensor_params.c @@ -153,6 +153,7 @@ PARAM_DEFINE_INT32(CAL_MAG0_ID, 0); * * @min -1 * @max 30 + * @reboot_required true * @group Sensor Calibration */ PARAM_DEFINE_INT32(CAL_MAG0_ROT, -1); @@ -359,6 +360,7 @@ PARAM_DEFINE_INT32(CAL_MAG1_ID, 0); * * @min -1 * @max 30 + * @reboot_required true * @group Sensor Calibration */ PARAM_DEFINE_INT32(CAL_MAG1_ROT, -1); @@ -565,6 +567,7 @@ PARAM_DEFINE_INT32(CAL_MAG2_ID, 0); * * @min -1 * @max 30 + * @reboot_required true * @group Sensor Calibration */ PARAM_DEFINE_INT32(CAL_MAG2_ROT, -1); @@ -710,6 +713,7 @@ PARAM_DEFINE_INT32(CAL_MAG3_ID, 0); * * @min -1 * @max 30 + * @reboot_required true * @group Sensor Calibration */ PARAM_DEFINE_INT32(CAL_MAG3_ROT, -1); @@ -876,6 +880,8 @@ PARAM_DEFINE_FLOAT(SENS_BARO_QNH, 1013.25f); * @value 24 Pitch 90° * @value 25 Pitch 270° * + * @reboot_required true + * * @group Sensor Calibration */ PARAM_DEFINE_INT32(SENS_BOARD_ROT, 0);