From 693cc4a533d68486d1152d00c3712f174a2aa6e9 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 9 Feb 2017 15:20:55 +1100 Subject: [PATCH] Update SYS_CAL_TEMP parameter name and description We will be adding another parameter to set min starting temp, so this name needs to be made less generic. Fixes typographical errors in the description --- src/modules/events/temperature_calibration/task.cpp | 2 +- src/modules/systemlib/system_params.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/modules/events/temperature_calibration/task.cpp b/src/modules/events/temperature_calibration/task.cpp index cd032451ca..c1eb0e069b 100644 --- a/src/modules/events/temperature_calibration/task.cpp +++ b/src/modules/events/temperature_calibration/task.cpp @@ -124,7 +124,7 @@ void TemperatureCalibration::task_main() } int32_t min_temp_rise = 24; - param_get(param_find("SYS_CAL_TEMP"), &min_temp_rise); + param_get(param_find("SYS_CAL_TDEL"), &min_temp_rise); PX4_INFO("Waiting for %i degrees difference in sensor temperature", min_temp_rise); //init calibrators diff --git a/src/modules/systemlib/system_params.c b/src/modules/systemlib/system_params.c index 10e6ffd5e4..cbd83fc665 100644 --- a/src/modules/systemlib/system_params.c +++ b/src/modules/systemlib/system_params.c @@ -212,13 +212,12 @@ PARAM_DEFINE_INT32(SYS_CAL_BARO, 0); /** * Required temperature rise during thermal calibration * - * A temperature increase greater than this value is required during calibration performed by the setting of SYS_TEMP_CAL. - * Calibration will complete for each sensor when the temperature increase above the starting temeprature exceeds SYS_TEMP_RISE. + * A temperature increase greater than this value is required during calibration. + * Calibration will complete for each sensor when the temperature increase above the starting temeprature exceeds the value set by SYS_CAL_TDEL. * If the temperature rise is insufficient, the calibration will continue indefinitely and the board will need to be repowered to exit. * * @unit deg C * @min 10 - * @max 50 * @group System */ -PARAM_DEFINE_INT32(SYS_CAL_TEMP, 24); +PARAM_DEFINE_INT32(SYS_CAL_DELT, 24);