1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Refine some stack sizes

This commit is contained in:
James Cotton 2012-03-10 00:51:57 -06:00
parent 54880c83a0
commit 372f959c37
3 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@
#include "CoordinateConversions.h" #include "CoordinateConversions.h"
// Private constants // Private constants
#define STACK_SIZE_BYTES 1540 #define STACK_SIZE_BYTES 2240
#define TASK_PRIORITY (tskIDLE_PRIORITY+3) #define TASK_PRIORITY (tskIDLE_PRIORITY+3)
#define FAILSAFE_TIMEOUT_MS 10 #define FAILSAFE_TIMEOUT_MS 10
@ -480,7 +480,7 @@ static int32_t updateAttitudeINSGPS(bool first_run, bool outdoor_mode)
gps_updated = 0; gps_updated = 0;
} }
mag_updated |= xQueueReceive(magQueue, &ev, 0 / portTICK_RATE_MS) == pdTRUE; mag_updated |= (xQueueReceive(magQueue, &ev, 0 / portTICK_RATE_MS) == pdTRUE) && homeLocation.Set == HOMELOCATION_SET_TRUE;
baro_updated |= xQueueReceive(baroQueue, &ev, 0 / portTICK_RATE_MS) == pdTRUE; baro_updated |= xQueueReceive(baroQueue, &ev, 0 / portTICK_RATE_MS) == pdTRUE;
gps_updated |= (xQueueReceive(gpsQueue, &ev, 0 / portTICK_RATE_MS) == pdTRUE) && outdoor_mode; gps_updated |= (xQueueReceive(gpsQueue, &ev, 0 / portTICK_RATE_MS) == pdTRUE) && outdoor_mode;

View File

@ -62,7 +62,7 @@
// Private constants // Private constants
#define MAX_QUEUE_SIZE 4 #define MAX_QUEUE_SIZE 4
#define STACK_SIZE_BYTES 2048 #define STACK_SIZE_BYTES 1548
#define TASK_PRIORITY (tskIDLE_PRIORITY+2) #define TASK_PRIORITY (tskIDLE_PRIORITY+2)
// Private types // Private types

View File

@ -38,7 +38,7 @@
// Private constants // Private constants
#define OVEROSYNC_PACKET_SIZE 1024 #define OVEROSYNC_PACKET_SIZE 1024
#define MAX_QUEUE_SIZE 40 #define MAX_QUEUE_SIZE 40
#define STACK_SIZE_BYTES 4096 #define STACK_SIZE_BYTES 2096
#define TASK_PRIORITY (tskIDLE_PRIORITY + 0) #define TASK_PRIORITY (tskIDLE_PRIORITY + 0)
// Private types // Private types