mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-20 05:52:11 +01:00
Increase the size of the eventdispatcher task and lower the maximum queue size.
This commit is contained in:
parent
a2b76adc33
commit
f766ba47aa
@ -99,10 +99,13 @@
|
|||||||
#define PIOS_SYSTEM_STACK_SIZE 460
|
#define PIOS_SYSTEM_STACK_SIZE 460
|
||||||
#define PIOS_STABILIZATION_STACK_SIZE 524
|
#define PIOS_STABILIZATION_STACK_SIZE 524
|
||||||
#define PIOS_TELEM_STACK_SIZE 500
|
#define PIOS_TELEM_STACK_SIZE 500
|
||||||
#define PIOS_EVENTDISPATCHER_STACK_SIZE 96
|
#define PIOS_EVENTDISPATCHER_STACK_SIZE 130
|
||||||
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 1995998
|
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 1995998
|
||||||
//#define PIOS_QUATERNION_STABILIZATION
|
//#define PIOS_QUATERNION_STABILIZATION
|
||||||
|
|
||||||
|
// This can't be too high to stop eventdispatcher thread overflowing
|
||||||
|
#define PIOS_EVENTDISAPTCHER_QUEUE 10
|
||||||
|
|
||||||
#endif /* PIOS_CONFIG_H */
|
#endif /* PIOS_CONFIG_H */
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
@ -27,7 +27,11 @@
|
|||||||
#include "openpilot.h"
|
#include "openpilot.h"
|
||||||
|
|
||||||
// Private constants
|
// Private constants
|
||||||
|
#if defined(PIOS_EVENTDISAPTCHER_QUEUE)
|
||||||
|
#define MAX_QUEUE_SIZE PIOS_EVENTDISAPTCHER_QUEUE
|
||||||
|
#else
|
||||||
#define MAX_QUEUE_SIZE 20
|
#define MAX_QUEUE_SIZE 20
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(PIOS_EVENTDISPATCHER_STACK_SIZE)
|
#if defined(PIOS_EVENTDISPATCHER_STACK_SIZE)
|
||||||
#define STACK_SIZE PIOS_EVENTDISPATCHER_STACK_SIZE
|
#define STACK_SIZE PIOS_EVENTDISPATCHER_STACK_SIZE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user