stack sizes: reduce stack sizes for modules that use sensor_combined

The sensor_combined topic got reduced from ~780 bytes to 72 bytes.
This commit is contained in:
Beat Küng
2016-07-07 11:35:50 +02:00
committed by Lorenz Meier
parent c5ea4b43be
commit 8e136779ec
6 changed files with 6 additions and 6 deletions
@@ -175,7 +175,7 @@ int attitude_estimator_ekf_main(int argc, char *argv[])
attitude_estimator_ekf_task = px4_task_spawn_cmd("attitude_estimator_ekf",
SCHED_DEFAULT,
SCHED_PRIORITY_MAX - 5,
7700,
7000,
attitude_estimator_ekf_thread_main,
(argv) ? (char * const *)&argv[2] : (char * const *)NULL);
return 0;
@@ -256,7 +256,7 @@ int AttitudeEstimatorQ::start()
_control_task = px4_task_spawn_cmd("attitude_estimator_q",
SCHED_DEFAULT,
SCHED_PRIORITY_MAX - 5,
2500,
2000,
(px4_main_t)&AttitudeEstimatorQ::task_main_trampoline,
nullptr);
+1 -1
View File
@@ -297,7 +297,7 @@ int commander_main(int argc, char *argv[])
daemon_task = px4_task_spawn_cmd("commander",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT + 40,
3600,
3000,
commander_thread_main,
(char * const *)&argv[0]);
+1 -1
View File
@@ -1018,7 +1018,7 @@ int Ekf2::start()
// On the DSP we seem to get random crashes with a stack size below 13000.
const unsigned stack_size = 15000;
#else
const unsigned stack_size = 9000;
const unsigned stack_size = 8500;
#endif
@@ -151,7 +151,7 @@ int position_estimator_inav_main(int argc, char *argv[])
thread_should_exit = false;
position_estimator_inav_task = px4_task_spawn_cmd("position_estimator_inav",
SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, 5300,
SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, 4600,
position_estimator_inav_thread_main,
(argv && argc > 2) ? (char *const *) &argv[2] : (char *const *) NULL);
return 0;
+1 -1
View File
@@ -2478,7 +2478,7 @@ Sensors::start()
_sensors_task = px4_task_spawn_cmd("sensors",
SCHED_DEFAULT,
SCHED_PRIORITY_MAX - 5,
2200,
1500,
(px4_main_t)&Sensors::task_main_trampoline,
nullptr);