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 
30 #ifndef PIOS_CONFIG_H
31 #define PIOS_CONFIG_H
32 
33 #include <pios_flight_config.h>
34 
35 /* Major features */
36 #define STABILIZATION_LQG
37 
38 /* Enable/Disable PiOS Modules */
39 #define PIOS_INCLUDE_FLASH_JEDEC
40 #define PIOS_INCLUDE_I2C
41 #define PIOS_INCLUDE_SPI
42 #define PIOS_INCLUDE_FASTHEAP
43 #define PIOS_INCLUDE_MAX7456
44 #define PIOS_INCLUDE_WS2811
45 #define PIOS_INCLUDE_DAC
46 #define PIOS_INCLUDE_DAC_FSK
47 #define PIOS_INCLUDE_DAC_ANNUNCIATOR
48 
49 /* Select the sensors to include */
50 #define PIOS_INCLUDE_MPU
51 #define PIOS_INCLUDE_BMP280
52 #define PIOS_INCLUDE_HMC5883
53 #define PIOS_INCLUDE_HMC5983_I2C
54 #define PIOS_TOLERATE_MISSING_SENSORS
55 
56 /* Com systems to include */
57 #define PIOS_INCLUDE_MAVLINK
58 #define PIOS_INCLUDE_LIGHTTELEMETRY
59 #define PIOS_INCLUDE_DSHOTTELEMETRY
60 
61 #define PIOS_INCLUDE_DMASHOT
62 
63 /* Supported receiver interfaces */
64 
65 /* Flags that alter behaviours */
66 
67 #define SYSTEMMOD_RGBLED_SUPPORT
68 
69 #define CAMERASTAB_POI_MODE
70 
71 /* Alarm Thresholds */
72 
73 /*
74  * This has been calibrated 2014/03/01 using chibios @ fbd194c026098076bddd9e45e147828000f39d89.
75  * Calibration has been done by disabling the init task, breaking into debugger after
76  * approximately after 60 seconds, then doing the following math:
77  *
78  * IDLE_COUNTS_PER_SEC_AT_NO_LOAD = (uint32_t)((double)idleCounter / xTickCount * 1000 + 0.5)
79  *
80  * This has to be redone every time the toolchain, toolchain flags or RTOS
81  * configuration like number of task priorities or similar changes.
82  * A change in the cpu load calculation or the idle task handler will invalidate this as well.
83  */
84 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737)
85 
86 #define REVOLUTION
87 
88 #endif /* PIOS_CONFIG_H */
89