diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 09:02:31 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 09:02:31 +0200 |
commit | 1e13b5a02c4aab5b32f43b6bf2b3588674ee84ac (patch) | |
tree | f28ef782cb16f28652b50c8cc46b9f746abc4fda /src/modules/commander | |
parent | 4176fc69bb1d52694bf88bdffc16fa10ba004054 (diff) | |
download | px4-firmware-1e13b5a02c4aab5b32f43b6bf2b3588674ee84ac.tar.gz px4-firmware-1e13b5a02c4aab5b32f43b6bf2b3588674ee84ac.tar.bz2 px4-firmware-1e13b5a02c4aab5b32f43b6bf2b3588674ee84ac.zip |
commander: Reduce calibration count, minimally reduce stack sizes after careful inspection
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/commander.cpp | 4 | ||||
-rw-r--r-- | src/modules/commander/mag_calibration.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 17d3d3dcd..13da27dcd 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -249,7 +249,7 @@ int commander_main(int argc, char *argv[]) daemon_task = task_spawn_cmd("commander", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 40, - 3000, + 2950, commander_thread_main, (argv) ? (const char **)&argv[2] : (const char **)NULL); @@ -743,7 +743,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, 2900); struct sched_param param; (void)pthread_attr_getschedparam(&commander_low_prio_attr, ¶m); diff --git a/src/modules/commander/mag_calibration.cpp b/src/modules/commander/mag_calibration.cpp index 388820511..0ead22f77 100644 --- a/src/modules/commander/mag_calibration.cpp +++ b/src/modules/commander/mag_calibration.cpp @@ -72,7 +72,7 @@ int do_mag_calibration(int mavlink_fd) uint64_t calibration_interval = 45 * 1000 * 1000; /* maximum 500 values */ - const unsigned int calibration_maxcount = 500; + const unsigned int calibration_maxcount = 240; unsigned int calibration_counter; struct mag_scale mscale_null = { |