From 353f637e92603b438e46fcf1c6e4e2da537dc448 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 9 Aug 2017 10:35:44 -0400 Subject: [PATCH] move SYS_FMU_TASK to px4fmu --- src/drivers/px4fmu/px4fmu_params.c | 16 ++++++++++++++++ src/modules/systemlib/system_params.c | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/drivers/px4fmu/px4fmu_params.c b/src/drivers/px4fmu/px4fmu_params.c index a589753390..202a99349b 100644 --- a/src/drivers/px4fmu/px4fmu_params.c +++ b/src/drivers/px4fmu/px4fmu_params.c @@ -195,3 +195,19 @@ PARAM_DEFINE_FLOAT(THR_MDL_FAC, 0.0f); * @group PWM Outputs */ PARAM_DEFINE_FLOAT(MOT_SLEW_MAX, 0.0f); + +/** + * Run the FMU as a task to reduce latency + * + * If true, the FMU will run in a separate task instead of on the work queue. + * Set this if low latency is required, for example for racing. + * + * This is a trade-off between RAM usage and latency: running as a task, it + * requires a separate stack and directly polls on the control topics, whereas + * running on the work queue, it runs at a fixed update rate. + * + * @boolean + * @reboot_required true + * @group System + */ +PARAM_DEFINE_INT32(SYS_FMU_TASK, 0); diff --git a/src/modules/systemlib/system_params.c b/src/modules/systemlib/system_params.c index 2b3fcb2bed..1aa36b414c 100644 --- a/src/modules/systemlib/system_params.c +++ b/src/modules/systemlib/system_params.c @@ -90,22 +90,6 @@ PARAM_DEFINE_INT32(SYS_HITL, 0); */ PARAM_DEFINE_INT32(SYS_USE_IO, 1); -/** - * Run the FMU as a task to reduce latency - * - * If true, the FMU will run in a separate task instead of on the work queue. - * Set this if low latency is required, for example for racing. - * - * This is a trade-off between RAM usage and latency: running as a task, it - * requires a separate stack and directly polls on the control topics, whereas - * running on the work queue, it runs at a fixed update rate. - * - * @boolean - * @reboot_required true - * @group System - */ -PARAM_DEFINE_INT32(SYS_FMU_TASK, 0); - /** * Set restart type *