This repository has been archived by the owner on Aug 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
BCI.h
109 lines (83 loc) · 2.05 KB
/
BCI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#ifndef BCI_H_INCLUDED
#define BCI_H_INCLUDED
#if defined(BCI_USE_BLOCK) || defined(BCI_USE_MATRIX) || defined(BCI_USE_ARRAYLIST)
#ifndef BCI_USE_HEAP
#define BCI_USE_HEAP
#endif
#endif
#if defined(BCI_USE_MATRIX) || defined(BCI_USE_ARRAYLIST)
#ifndef BCI_USE_BLOCK
#define BCI_USE_BLOCK
#endif
#endif
#if defined(BCI_USE_BANGBANG) || defined(BCI_USE_VEL_PID) || defined(BCI_USE_VEL_TBH)
#ifndef BCI_USE_DEMA_FILTER
#define BCI_USE_DEMA_FILTER
#endif
#endif
#if defined(BCI_USE_LCDCONTROL)
#ifndef BCI_USE_TIMER
#define BCI_USE_TIMER
#endif
#endif
#include "Modules\Math\math.h"
#include "Modules\Math\statePack.c"
#include "Modules\Util\joystickDefinitions.h"
#include "Modules\Util\semaphore.h"
#include "Modules\Util\util.h"
#ifdef BCI_USE_UART
#include "Modules\Util\uart.c"
#endif
#ifdef BCI_USE_TIMER
#include "Modules\Util\timer.c"
#endif
#ifdef BCI_USE_HEAP
#include "Modules\Util\error.c"
#endif
#ifdef BCI_USE_EMA_FILTER
#include "Modules\Filter\emaFilter.c"
#endif
#ifdef BCI_USE_DEMA_FILTER
#include "Modules\Filter\demaFilter.c"
#endif
#ifdef BCI_USE_FUA_FILTER
#include "Modules\Filter\fuaFilter.c"
#endif
#ifdef BCI_USE_TUA_FILTER
#include "Modules\Filter\tuaFilter.c"
#endif
#ifdef BCI_USE_BIQUAD_FILTER
#include "Modules\Filter\biquadFilter.c"
#endif
#ifdef BCI_USE_POS_PID
#include "Modules\Control\positionPID.c"
#endif
#ifdef BCI_USE_VEL_PID
#include "Modules\Control\velocityPID.c"
#endif
#ifdef BCI_USE_VEL_TBH
#include "Modules\Control\velocityTBH.c"
#endif
#ifdef BCI_USE_BANGBANG
#include "Modules\Control\bangBang.c"
#endif
#ifdef BCI_USE_MOTORCONTROL
#include "Modules\Control\motorControl.c"
#endif
#ifdef BCI_USE_LCDCONTROL
#include "Modules\LCD\lcdControl.c"
#endif
#ifdef BCI_USE_HEAP
#include "Modules\Heap\heap.c"
#endif
#ifdef BCI_USE_BLOCK
#include "Modules\Heap\block.c"
#endif
#ifdef BCI_USE_ARRAYLIST
#include "Modules\Heap\arrayList.c"
#endif
#ifdef BCI_USE_MATRIX
#include "Modules\Math\matrix.c"
#endif
#include "Modules\Etc\suppressWarning.c"
#endif //BCI_H_INCLUDED