aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarryl Taylor <darryl.c.taylor@gmail.com>2014-01-28 10:30:16 +0800
committerDarryl Taylor <darryl.c.taylor@gmail.com>2014-01-28 10:30:16 +0800
commitd1fb7651876236432dc66c5331c60258ff962352 (patch)
treee3c362cab0a3cce50f48baf82014b066c9838ef3 /src
parentdfaa5a0c7c81f432d64cfffdaaf3d683c01f10b4 (diff)
downloadpx4-firmware-d1fb7651876236432dc66c5331c60258ff962352.tar.gz
px4-firmware-d1fb7651876236432dc66c5331c60258ff962352.tar.bz2
px4-firmware-d1fb7651876236432dc66c5331c60258ff962352.zip
Reduced low priority thread stack size to 1728. Top indicates the high-water-mark is at 1380 during accelerometer calibration. Safety margin ~25%
Diffstat (limited to 'src')
-rw-r--r--src/modules/commander/commander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index add7312de..6f15e0702 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -648,7 +648,7 @@ int commander_thread_main(int argc, char *argv[])
pthread_attr_t commander_low_prio_attr;
pthread_attr_init(&commander_low_prio_attr);
- pthread_attr_setstacksize(&commander_low_prio_attr, 2992);
+ pthread_attr_setstacksize(&commander_low_prio_attr, 1728);
struct sched_param param;
(void)pthread_attr_getschedparam(&commander_low_prio_attr, &param);