1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Increase the overo event queue size to try and stop getting warnings. Only

allocate when using overosync.
This commit is contained in:
James Cotton 2012-07-24 09:46:49 -05:00
parent 92d975e668
commit d75fef52ee

View File

@ -38,7 +38,7 @@
// Private constants
#define OVEROSYNC_PACKET_SIZE 1024
#define MAX_QUEUE_SIZE 60
#define MAX_QUEUE_SIZE 200
#define STACK_SIZE_BYTES 512
#define TASK_PRIORITY (tskIDLE_PRIORITY + 0)
@ -88,6 +88,9 @@ int32_t OveroSyncInitialize(void)
if (optionalModules[HWSETTINGS_OPTIONALMODULES_OVERO] == HWSETTINGS_OPTIONALMODULES_ENABLED) {
overoEnabled = true;
// Create object queues
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));
} else {
overoEnabled = false;
return -1;
@ -97,8 +100,6 @@ int32_t OveroSyncInitialize(void)
OveroSyncStatsInitialize();
// Create object queues
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));
// Initialise UAVTalk
uavTalkCon = UAVTalkInitialize(&packData);