dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_config.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  *
29  * Additional note on redistribution: The copyright and license notices above
30  * must be maintained in each individual source file that is a derivative work
31  * of this source file; otherwise redistribution is prohibited.
32  */
33 
34 #ifndef PIOS_CONFIG_H
35 #define PIOS_CONFIG_H
36 
37 #include <pios_flight_config.h>
38 
39 /* Major features */
40 #define STABILIZATION_LQG
41 
42 /* Enable/Disable PiOS Modules */
43 #define PIOS_INCLUDE_I2C
44 #define PIOS_INCLUDE_SPI
45 #define PIOS_INCLUDE_FASTHEAP
46 #define PIOS_INCLUDE_TBSVTXCONFIG
47 #define PIOS_INCLUDE_WS2811
48 #define PIOS_INCLUDE_DAC
49 #define PIOS_INCLUDE_DAC_FSK
50 #define PIOS_INCLUDE_DAC_ANNUNCIATOR
51 
52 /* Select the sensors to include */
53 #define PIOS_INCLUDE_BMI160
54 #define PIOS_INCLUDE_BMP280
55 #define PIOS_INCLUDE_BMP280_SPI
56 #define PIOS_INCLUDE_LIS3MDL
57 #define PIOS_INCLUDE_HMC5883
58 #define PIOS_INCLUDE_HMC5983_I2C
59 //#define PIOS_INCLUDE_ETASV3
60 #define PIOS_INCLUDE_MPXV5004
61 #define PIOS_INCLUDE_MPXV7002
62 #define PIOS_INCLUDE_OPTICALFLOW
63 #define PIOS_INCLUDE_RANGEFINDER
64 #define PIOS_INCLUDE_PX4FLOW
65 #define PIOS_TOLERATE_MISSING_SENSORS
66 
67 /* Com systems to include */
68 #define PIOS_INCLUDE_MAVLINK
69 #define PIOS_INCLUDE_LIGHTTELEMETRY
70 
71 
72 /* Supported receiver interfaces */
73 #define PIOS_INCLUDE_PWM
74 
75 
76 #define PIOS_VIDEO_TIM4_COUNTER
77 #define PIOS_INCLUDE_VIDEO
78 #define PIOS_VIDEO_SPLITBUFFER /* Uses 2 1-bit/pixel buffers */
79 #define PIOS_VIDEO_HSYNC_OFFSET -22
80 #define PIOS_VIDEO_INPUT_FILTER
81 #define PIOS_OMIT_TIM2IRQ
82 #define OSD_USE_MENU
83 
84 #define MODULE_FLIGHTSTATS_BUILTIN
85 
86 /* Flags that alter behaviors */
87 
88 #define SYSTEMMOD_RGBLED_SUPPORT
89 #define SYSTEMMOD_RGBLED_VIDEO_HACK
90 
91 #define CAMERASTAB_POI_MODE
92 
93 /* DMA DShot */
94 #define PIOS_INCLUDE_DMASHOT
95 
96 /* Alarm Thresholds */
97 
98 /*
99  * This has been calibrated 2014/03/01 using chibios @ fbd194c026098076bddd9e45e147828000f39d89.
100  * Calibration has been done by disabling the init task, breaking into debugger after
101  * approximately after 60 seconds, then doing the following math:
102  *
103  * IDLE_COUNTS_PER_SEC_AT_NO_LOAD = (uint32_t)((double)idleCounter / xTickCount * 1000 + 0.5)
104  *
105  * This has to be redone every time the toolchain, toolchain flags or RTOS
106  * configuration like number of task priorities or similar changes.
107  * A change in the cpu load calculation or the idle task handler will invalidate this as well.
108  */
109 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737)
110 
111 #endif /* PIOS_CONFIG_H */
112