From 110930dc0e52e60f2478e27e6b78dc0d9e3033f7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 8 Mar 2015 08:14:15 +0100 Subject: [PATCH] FW pos control: Adjust stack size to real use --- src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 2 +- src/modules/fw_pos_control_l1/module.mk | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp index 0bdc285e70..427df9739d 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp @@ -1624,7 +1624,7 @@ FixedwingPositionControl::start() _control_task = task_spawn_cmd("fw_pos_control_l1", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, - 2000, + 1600, (main_t)&FixedwingPositionControl::task_main_trampoline, nullptr); diff --git a/src/modules/fw_pos_control_l1/module.mk b/src/modules/fw_pos_control_l1/module.mk index 98e5c0a1ef..8a8de708ee 100644 --- a/src/modules/fw_pos_control_l1/module.mk +++ b/src/modules/fw_pos_control_l1/module.mk @@ -44,6 +44,8 @@ SRCS = fw_pos_control_l1_main.cpp \ mtecs/limitoverride.cpp \ mtecs/mTecs_params.c +# Startup handler, the actual app stack size is +# in the task_spawn command MODULE_STACKSIZE = 1200 MAXOPTIMIZATION = -Os