diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-30 16:44:57 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-30 16:44:57 +0100 |
commit | ab63a77edf78a198117757a1d5e2dbe34cde1263 (patch) | |
tree | 86fe3295798cf4e5049b55e7471583320547730d | |
parent | 96dc901caeeb8a09e45f9a071d2f28d5b01148c5 (diff) | |
download | px4-firmware-ab63a77edf78a198117757a1d5e2dbe34cde1263.tar.gz px4-firmware-ab63a77edf78a198117757a1d5e2dbe34cde1263.tar.bz2 px4-firmware-ab63a77edf78a198117757a1d5e2dbe34cde1263.zip |
Reducing stack sizes to free some RAM
-rw-r--r-- | apps/ardrone_interface/ardrone_interface.c | 2 | ||||
-rw-r--r-- | apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c | 2 | ||||
-rw-r--r-- | apps/multirotor_att_control/multirotor_att_control_main.c | 7 | ||||
-rw-r--r-- | apps/sdlog/sdlog.c | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/apps/ardrone_interface/ardrone_interface.c b/apps/ardrone_interface/ardrone_interface.c index a8ce3ea77..f96d901fb 100644 --- a/apps/ardrone_interface/ardrone_interface.c +++ b/apps/ardrone_interface/ardrone_interface.c @@ -117,7 +117,7 @@ int ardrone_interface_main(int argc, char *argv[]) ardrone_interface_task = task_spawn("ardrone_interface", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 15, - 4096, + 2048, ardrone_interface_thread_main, (argv) ? (const char **)&argv[2] : (const char **)NULL); exit(0); diff --git a/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c b/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c index 4130b1c06..05a6292a2 100644 --- a/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c +++ b/apps/attitude_estimator_ekf/attitude_estimator_ekf_main.c @@ -150,7 +150,7 @@ int attitude_estimator_ekf_main(int argc, char *argv[]) attitude_estimator_ekf_task = task_spawn("attitude_estimator_ekf", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, - 20000, + 12000, attitude_estimator_ekf_thread_main, (argv) ? (const char **)&argv[2] : (const char **)NULL); exit(0); diff --git a/apps/multirotor_att_control/multirotor_att_control_main.c b/apps/multirotor_att_control/multirotor_att_control_main.c index 77adaf217..3466f9842 100644 --- a/apps/multirotor_att_control/multirotor_att_control_main.c +++ b/apps/multirotor_att_control/multirotor_att_control_main.c @@ -217,8 +217,9 @@ mc_thread_main(int argc, char *argv[]) att_sp.roll_body = manual.roll; att_sp.pitch_body = manual.pitch; /* only move setpoint if manual input is != 0 */ - if (manual.yaw < -0.02f || 0.02f < manual.yaw) { - att_sp.yaw_body = att_sp.yaw_body + manual.yaw * -0.0025f; + // XXX turn into param + if (manual.yaw < -0.01f || 0.01f < manual.yaw) { + att_sp.yaw_body = att_sp.yaw_body + manual.yaw * 0.01f; } att_sp.thrust = manual.throttle; att_sp.timestamp = hrt_absolute_time(); @@ -338,7 +339,7 @@ int multirotor_att_control_main(int argc, char *argv[]) mc_task = task_spawn("multirotor_att_control", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 15, - 6000, + 2048, mc_thread_main, NULL); exit(0); diff --git a/apps/sdlog/sdlog.c b/apps/sdlog/sdlog.c index 7d2f6afba..51f33e98d 100644 --- a/apps/sdlog/sdlog.c +++ b/apps/sdlog/sdlog.c @@ -144,7 +144,7 @@ int sdlog_main(int argc, char *argv[]) deamon_task = task_spawn("sdlog", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 30, - 4096, + 2048, sdlog_thread_main, (argv) ? (const char **)&argv[2] : (const char **)NULL); exit(0); |