From 5be27fda838fe95338edfc11c7fb1109d00cbf61 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sun, 29 May 2011 00:12:26 -0400 Subject: [PATCH] coptercontrol: Increase stack size for system module When running flight software from master (cf74908), my config was pushing the system module stack usage to within 16 bytes of its limit. This triggers a stack overflow alarm which prevents the quad from arming/flying. This change increases the available stack size such that there are 72 bytes of stack free (a previously stated safe margin) when my quad is sitting idle and unarmed on the bench. --- flight/CopterControl/System/inc/pios_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/CopterControl/System/inc/pios_config.h b/flight/CopterControl/System/inc/pios_config.h index af1b7d22d..77c5c51ec 100644 --- a/flight/CopterControl/System/inc/pios_config.h +++ b/flight/CopterControl/System/inc/pios_config.h @@ -92,7 +92,7 @@ /* Task stack sizes */ #define PIOS_ACTUATOR_STACK_SIZE 1020 #define PIOS_MANUAL_STACK_SIZE 724 -#define PIOS_SYSTEM_STACK_SIZE 504 +#define PIOS_SYSTEM_STACK_SIZE 560 #define PIOS_STABILIZATION_STACK_SIZE 524 #define PIOS_TELEM_STACK_SIZE 500