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
|
// Private constants
|
||||||
#define OVEROSYNC_PACKET_SIZE 1024
|
#define OVEROSYNC_PACKET_SIZE 1024
|
||||||
#define MAX_QUEUE_SIZE 60
|
#define MAX_QUEUE_SIZE 200
|
||||||
#define STACK_SIZE_BYTES 512
|
#define STACK_SIZE_BYTES 512
|
||||||
#define TASK_PRIORITY (tskIDLE_PRIORITY + 0)
|
#define TASK_PRIORITY (tskIDLE_PRIORITY + 0)
|
||||||
|
|
||||||
@ -88,6 +88,9 @@ int32_t OveroSyncInitialize(void)
|
|||||||
|
|
||||||
if (optionalModules[HWSETTINGS_OPTIONALMODULES_OVERO] == HWSETTINGS_OPTIONALMODULES_ENABLED) {
|
if (optionalModules[HWSETTINGS_OPTIONALMODULES_OVERO] == HWSETTINGS_OPTIONALMODULES_ENABLED) {
|
||||||
overoEnabled = true;
|
overoEnabled = true;
|
||||||
|
|
||||||
|
// Create object queues
|
||||||
|
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));
|
||||||
} else {
|
} else {
|
||||||
overoEnabled = false;
|
overoEnabled = false;
|
||||||
return -1;
|
return -1;
|
||||||
@ -97,8 +100,6 @@ int32_t OveroSyncInitialize(void)
|
|||||||
|
|
||||||
OveroSyncStatsInitialize();
|
OveroSyncStatsInitialize();
|
||||||
|
|
||||||
// Create object queues
|
|
||||||
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));
|
|
||||||
|
|
||||||
// Initialise UAVTalk
|
// Initialise UAVTalk
|
||||||
uavTalkCon = UAVTalkInitialize(&packData);
|
uavTalkCon = UAVTalkInitialize(&packData);
|
||||||
|
Loading…
Reference in New Issue
Block a user