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:
parent
92d975e668
commit
d75fef52ee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user