Increased priority of MAVLink receiver thread

This commit is contained in:
Lorenz Meier
2012-10-17 10:38:23 +02:00
parent 32e586d4b7
commit 5d3d17d025
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/****************************************************************************
/****************************************************************************
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
* Author: @author Lorenz Meier <lm@inf.ethz.ch>
+5
View File
@@ -487,6 +487,11 @@ receive_start(int uart)
{
pthread_attr_t receiveloop_attr;
pthread_attr_init(&receiveloop_attr);
struct sched_param param;
param.sched_priority = SCHED_PRIORITY_MAX - 40;
(void)pthread_attr_setschedparam(&receiveloop_attr, &param);
pthread_attr_setstacksize(&receiveloop_attr, 2048);
pthread_t thread;