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_FLASH_JEDEC
44 #define PIOS_INCLUDE_I2C
45 #define PIOS_INCLUDE_SPI
46 #define PIOS_INCLUDE_HPWM
47 #define PIOS_INCLUDE_TBSVTXCONFIG
48 
49 /* Select the sensors to include */
50 #define PIOS_INCLUDE_BMI160
51 #define PIOS_INCLUDE_BMP280
52 #define PIOS_INCLUDE_MS5611
53 #define PIOS_INCLUDE_HMC5883
54 #define PIOS_INCLUDE_HMC5983_I2C
55 #define PIOS_TOLERATE_MISSING_SENSORS
56 
57 #define FLASH_FREERTOS
58 
59 /* Com systems to include */
60 #define PIOS_INCLUDE_MAVLINK
61 #define PIOS_INCLUDE_LIGHTTELEMETRY
62 
63 #define PIOS_INCLUDE_DMASHOT
64 
65 /* Supported receiver interfaces */
66 
67 
68 #define PIOS_INCLUDE_LOG_TO_FLASH
69 #define PIOS_LOGFLASH_SECT_SIZE 0x10000 /* 64kb */
70 
71 #define PIOS_INCLUDE_IR_TRANSPONDER
72 
73 /* RE1 specific drivers */
74 #define PIOS_INCLUDE_RE1_FPGA
75 
76 /* OSD stuff */
77 #define PIOS_INCLUDE_VIDEO_QUADSPI
78 #define PIOS_VIDEO_BITS_PER_PIXEL 2
79 #define PIOS_VIDEO_QUADSPI_Y_OFFSET 3
80 #define MODULE_FLIGHTSTATS_BUILTIN
81 #define PIOS_INCLUDE_DEBUG_CONSOLE
82 #define OSD_USE_BRAINFPV_LOGO
83 #define OSD_USE_MENU
84 
85 /* Flags that alter behaviors */
86 #define AUTOTUNE_AVERAGING_DECIMATION 2
87 #define SYSTEMMOD_RGBLED_SUPPORT
88 
89 #define CAMERASTAB_POI_MODE
90 
91 /* Alarm Thresholds */
92 
93 /*
94  * This has been calibrated 2014/03/01 using chibios @ fbd194c026098076bddd9e45e147828000f39d89
95  * Calibration has been done by disabling the init task, breaking into debugger after
96  * approximately after 60 seconds, then doing the following math:
97  *
98  * IDLE_COUNTS_PER_SEC_AT_NO_LOAD = (uint32_t)((double)idleCounter / xTickCount * 1000 + 0.5)
99  *
100  * This has to be redone every time the toolchain, toolchain flags or FreeRTOS
101  * configuration like number of task priorities or similar changes.
102  * A change in the cpu load calculation or the idle task handler will invalidate this as well.
103  */
104 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737)
105 
106 #define BRAIN
107 
108 #endif /* PIOS_CONFIG_H */
109