Cleaned up different uorb topics, cleaned up excessive stack sizes

This commit is contained in:
Lorenz Meier
2012-11-27 17:24:33 +01:00
parent dc72d467d4
commit caf0fefa32
6 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ int mavlink_main(int argc, char *argv[])
mavlink_task = task_spawn("mavlink",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT,
6000,
2048,
mavlink_thread_main,
(const char**)argv);
exit(0);
+3 -1
View File
@@ -202,6 +202,8 @@ handle_message(mavlink_message_t *msg)
mavlink_vicon_position_estimate_t pos;
mavlink_msg_vicon_position_estimate_decode(msg, &pos);
vicon_position.timestamp = hrt_absolute_time();
vicon_position.x = pos.x;
vicon_position.y = pos.y;
vicon_position.z = pos.z;
@@ -427,4 +429,4 @@ receive_start(int uart)
pthread_t thread;
pthread_create(&thread, &receiveloop_attr, receive_thread, &uart);
return thread;
}
}
+2 -2
View File
@@ -731,8 +731,8 @@ uorb_receive_start(void)
pthread_attr_t uorb_attr;
pthread_attr_init(&uorb_attr);
/* Set stack size, needs more than 8000 bytes */
pthread_attr_setstacksize(&uorb_attr, 4096);
/* Set stack size, needs less than 2k */
pthread_attr_setstacksize(&uorb_attr, 2048);
pthread_t thread;
pthread_create(&thread, &uorb_attr, uorb_receive_thread, NULL);
+1
View File
@@ -54,6 +54,7 @@
#include <uORB/topics/vehicle_attitude_setpoint.h>
#include <uORB/topics/optical_flow.h>
#include <uORB/topics/actuator_outputs.h>
#include <uORB/topics/actuator_controls_effective.h>
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/manual_control_setpoint.h>
#include <uORB/topics/debug_key_value.h>