dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
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_TBSVTXCONFIG
43
#define PIOS_INCLUDE_DAC
44
#define PIOS_INCLUDE_DAC_ANNUNCIATOR
45
#define PIOS_INCLUDE_DAC_FSK
46
47
/* Select the sensors to include */
48
#define PIOS_INCLUDE_MS5611
49
#define PIOS_INCLUDE_MPU
50
#define PIOS_INCLUDE_MPU_MAG
51
#define PIOS_INCLUDE_HMC5883
52
#define PIOS_INCLUDE_HMC5983_I2C
53
//#define PIOS_INCLUDE_ETASV3
54
//#define PIOS_I2C_ETASV3_ADAPTER pios_i2c_flexi_id
55
#define PIOS_TOLERATE_MISSING_SENSORS
56
57
/* Com systems to include */
58
#define PIOS_INCLUDE_MAVLINK
59
#define PIOS_INCLUDE_LIGHTTELEMETRY
60
61
/* Supported receiver interfaces */
62
#define PIOS_INCLUDE_PWM
63
64
#define PIOS_INCLUDE_DMASHOT
65
66
/* OSD stuff */
67
#define PIOS_VIDEO_TIM4_COUNTER
68
#define PIOS_INCLUDE_VIDEO
69
#define PIOS_VIDEO_SPLITBUFFER
/* Brain uses 2 1-bit/pixel buffers */
70
#define PIOS_VIDEO_HSYNC_OFFSET 15
71
#define MODULE_FLIGHTSTATS_BUILTIN
72
#define PIOS_INCLUDE_DEBUG_CONSOLE
73
#define OSD_USE_BRAINFPV_LOGO
74
#define PIOS_OMIT_TIM2IRQ
75
#define OSD_USE_MENU
76
77
/* Flags that alter behaviors */
78
79
#define CAMERASTAB_POI_MODE
80
81
/* Alarm Thresholds */
82
83
/*
84
* This has been calibrated 2014/03/01 using chibios @ fbd194c026098076bddd9e45e147828000f39d89
85
* Calibration has been done by disabling the init task, breaking into debugger after
86
* approximately after 60 seconds, then doing the following math:
87
*
88
* IDLE_COUNTS_PER_SEC_AT_NO_LOAD = (uint32_t)((double)idleCounter / xTickCount * 1000 + 0.5)
89
*
90
* This has to be redone every time the toolchain, toolchain flags or RTOS
91
* configuration like number of task priorities or similar changes.
92
* A change in the cpu load calculation or the idle task handler will invalidate this as well.
93
*/
94
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737)
95
96
#define BRAIN
97
98
#define PIOS_INCLUDE_LOG_TO_FLASH
99
#define PIOS_LOGFLASH_SECT_SIZE 0x1000
/* 4kb */
100
101
#endif
/* PIOS_CONFIG_H */
102
pios_flight_config.h
flight
targets
brain
fw
pios_config.h
Generated by
1.8.6