[2] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[2] | 4 | // %flair:license}
|
---|
| 5 | // created: 2013/04/21
|
---|
| 6 | // filename: config.h
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: configuration du framework
|
---|
| 14 | //
|
---|
| 15 | //
|
---|
| 16 | /*********************************************************************/
|
---|
| 17 |
|
---|
| 18 | #ifndef CONFIG_H
|
---|
| 19 | #define CONFIG_H
|
---|
| 20 |
|
---|
[15] | 21 | // stack size of nrt threads, comment it to use default value
|
---|
[213] | 22 | // only used for user threads in udpsocket and ui_com, in case of the rt library
|
---|
[15] | 23 | #define NRT_STACK_SIZE 1024 * 1024 * 1
|
---|
[2] | 24 |
|
---|
[15] | 25 | // rt pipe size, comment it to use system heap
|
---|
| 26 | #define RT_PIPE_SIZE 1024 * 1024
|
---|
[2] | 27 |
|
---|
[15] | 28 | // nrt pipe size
|
---|
[214] | 29 | #define NRT_PIPE_SIZE 1024 * 100*10
|
---|
[2] | 30 |
|
---|
[15] | 31 | // rt log heap size
|
---|
[213] | 32 | #define RT_LOG_HEAP 1024 * 100
|
---|
[2] | 33 |
|
---|
[213] | 34 | // rt xml heap size
|
---|
| 35 | #define RT_XML_HEAP 5 * 1024 * 1024
|
---|
[2] | 36 |
|
---|
[15] | 37 | // nrt pipe path
|
---|
[2] | 38 | #define NRT_PIPE_PATH "/proc/xenomai/registry/native/pipes/"
|
---|
| 39 |
|
---|
[15] | 40 | // min priority for Threads
|
---|
[2] | 41 | #define MIN_THREAD_PRIORITY 20
|
---|
| 42 |
|
---|
[15] | 43 | // max priority for Threads
|
---|
[2] | 44 | #define MAX_THREAD_PRIORITY 99
|
---|
| 45 |
|
---|
[15] | 46 | // priority of the FrameworkManager task (manages udt connection)
|
---|
[2] | 47 | #define FRAMEWORK_TASK_PRIORITY 1
|
---|
| 48 |
|
---|
[15] | 49 | // timeout in ms for select
|
---|
[2] | 50 | #define SELECT_TIMEOUT_MS 200
|
---|
| 51 |
|
---|
[15] | 52 | // type of xml root element
|
---|
[2] | 53 | #define XML_ROOT_TYPE "root"
|
---|
| 54 |
|
---|
[15] | 55 | // name of xml root element
|
---|
[2] | 56 | //#define XML_ROOT_ELEMENT "Manager"
|
---|
| 57 |
|
---|
[15] | 58 | // name of main tabwidget
|
---|
[2] | 59 | #define XML_MAIN_TABWIDGET "Main_TabWidget"
|
---|
| 60 |
|
---|
[15] | 61 | // name of app tabwidget
|
---|
[2] | 62 | #define XML_APP_TABWIDGET "App_TabWidget"
|
---|
| 63 |
|
---|
[15] | 64 | // use compression for messages with ground station
|
---|
[2] | 65 | #define COMPRESS_FRAMES
|
---|
| 66 |
|
---|
[15] | 67 | // size of buffer shunck
|
---|
[2] | 68 | #define COMPRESS_CHUNK 1024
|
---|
| 69 |
|
---|
| 70 | #endif // CONFIG_H
|
---|