diff options
author | Darryl Taylor <darryl.c.taylor@gmail.com> | 2014-01-28 10:30:16 +0800 |
---|---|---|
committer | Darryl Taylor <darryl.c.taylor@gmail.com> | 2014-01-28 10:30:16 +0800 |
commit | d1fb7651876236432dc66c5331c60258ff962352 (patch) | |
tree | e3c362cab0a3cce50f48baf82014b066c9838ef3 | |
parent | dfaa5a0c7c81f432d64cfffdaaf3d683c01f10b4 (diff) | |
download | px4-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%
-rw-r--r-- | src/modules/commander/commander.cpp | 2 |
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, ¶m); |