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 
30 #ifndef PIOS_CONFIG_H
31 #define PIOS_CONFIG_H
32 
33 #include <pios_flight_config.h>
34 
35 /* Major features */
36 #define PIOS_INCLUDE_FLASH_JEDEC
37 #define STABILIZATION_LQG
38 
39 /* Enable/Disable PiOS Modules */
40 #define PIOS_INCLUDE_I2C
41 #define PIOS_INCLUDE_SPI
42 #define PIOS_INCLUDE_CAN
43 #define PIOS_INCLUDE_FASTHEAP
44 
45 /* Variables related to the RFM22B functionality */
46 #define PIOS_INCLUDE_OPENLRS
47 #define PIOS_INCLUDE_OPENLRS_RCVR
48 
49 /* Select the sensors to include */
50 #define PIOS_INCLUDE_MPU
51 #define PIOS_INCLUDE_MPU_MAG
52 #define PIOS_INCLUDE_MS5611
53 //#define PIOS_INCLUDE_ETASV3
54 #define PIOS_INCLUDE_MPXV5004
55 #define PIOS_INCLUDE_MPXV7002
56 #define PIOS_INCLUDE_HMC5883
57 #define PIOS_INCLUDE_HMC5983_I2C
58 //#define PIOS_INCLUDE_HCSR04
59 
60 /* Com systems to include */
61 #define PIOS_INCLUDE_MAVLINK
62 //#define PIOS_INCLUDE_LIGHTTELEMETRY
63 
64 /* Supported receiver interfaces */
65 #define PIOS_INCLUDE_PWM
66 
67 
68 #define PIOS_INCLUDE_DEBUG_CONSOLE
69 
70 /* Flags that alter behaviors */
71 
72 #define CAMERASTAB_POI_MODE
73 
74 /* Alarm Thresholds */
75 
76 /*
77  * This has been calibrated 2013/03/11 using next @ 6d21c7a590619ebbc074e60cab5e134e65c9d32b.
78  * Calibration has been done by disabling the init task, breaking into debugger after
79  * approximately after 60 seconds, then doing the following math:
80  *
81  * IDLE_COUNTS_PER_SEC_AT_NO_LOAD = (uint32_t)((double)idleCounter / xTickCount * 1000 + 0.5)
82  *
83  * This has to be redone every time the toolchain, toolchain flags or RTOS
84  * configuration like number of task priorities or similar changes.
85  * A change in the cpu load calculation or the idle task handler will invalidate this as well.
86  */
87 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737)
88 
89 #define PIOS_INCLUDE_LOG_TO_FLASH
90 #define PIOS_LOGFLASH_SECT_SIZE 0x10000 /* 64kb */
91 
92 #endif /* PIOS_CONFIG_H */
93