SYS_FMU_TASK: add param to start fmu as task (default=work queue)

This commit is contained in:
Beat Küng
2017-07-18 16:52:26 +02:00
committed by Lorenz Meier
parent 07b7a153f3
commit 0668d61665
3 changed files with 27 additions and 4 deletions
+17
View File
@@ -72,10 +72,27 @@ PARAM_DEFINE_INT32(SYS_AUTOCONFIG, 0);
* @boolean
* @min 0
* @max 1
* @reboot_required true
* @group System
*/
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
*