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:
parent
54880c83a0
commit
372f959c37
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user