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 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef PIOS_CONFIG_H
30 #define PIOS_CONFIG_H
31 
32 #include <pios_flight_config.h>
33 
34 /* Major features */
35 #define STABILIZATION_LQG
36 
37 /* Enable/Disable PiOS Modules */
38 #define PIOS_INCLUDE_FLASH_JEDEC
39 #define PIOS_INCLUDE_I2C
40 #define PIOS_INCLUDE_SPI
41 #define PIOS_INCLUDE_FASTHEAP
42 #define PIOS_INCLUDE_MAX7456
43 #define PIOS_INCLUDE_WS2811
44 #define PIOS_INCLUDE_DAC
45 #define PIOS_INCLUDE_DAC_FSK
46 #define PIOS_INCLUDE_DAC_ANNUNCIATOR
47 
48 /* Select the sensors to include */
49 #define PIOS_INCLUDE_HMC5883
50 #define PIOS_INCLUDE_HMC5983_I2C
51 #define PIOS_INCLUDE_MPU
52 #define PIOS_INCLUDE_MS5611
53 #define PIOS_TOLERATE_MISSING_SENSORS
54 
55 /* Com systems to include */
56 #define PIOS_INCLUDE_MAVLINK
57 #define PIOS_INCLUDE_LIGHTTELEMETRY
58 
59 /* Supported receiver interfaces */
60 
61 #define PIOS_INCLUDE_DMASHOT
62 
63 /* Flags that alter behaviours */
64 
65 #define SYSTEMMOD_RGBLED_SUPPORT
66 
67 #define CAMERASTAB_POI_MODE
68 
69 /* Alarm Thresholds */
70 
71 /*
72  * This has been calibrated 2014/03/01 using chibios @ fbd194c026098076bddd9e45e147828000f39d89.
73  * Calibration has been done by disabling the init task, breaking into debugger after
74  * approximately after 60 seconds, then doing the following math:
75  *
76  * IDLE_COUNTS_PER_SEC_AT_NO_LOAD = (uint32_t)((double)idleCounter / xTickCount * 1000 + 0.5)
77  *
78  * This has to be redone every time the toolchain, toolchain flags or RTOS
79  * configuration like number of task priorities or similar changes.
80  * A change in the cpu load calculation or the idle task handler will invalidate this as well.
81  */
82 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737)
83 
84 #define REVOLUTION
85 
86 #endif /* PIOS_CONFIG_H */
87