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
|
#ifndef MAIN_H_
#define MAIN_H_
#include <API.h>
#define LCD_PORT uart1
#define ANALOG_PORT(x) (x+13)
#ifdef __cplusplus
extern "C" {
#endif
/*
* Aliases for all the motors, stored in an enum for convenience.
*/
enum MOTOR_PORT_MAP {
UNUSED = 0,
CANNON1,
CANNON2,
CANNON3,
CANNON4,
INTAKE,
DRIVER,
DRIVEL,
LIFT1,
LIFT2,
ROTATER,
};
enum IME_PORT_MAP {
IDRIVER = 0,
IDRIVEL,
IROTATER,
ILIFT1,
ILIFT2,
ICANNONL,
ICANNONR
};
void autonomous();
void initializeIO();
void initialize();
void operatorControl();
#ifdef __cplusplus
}
#endif
#endif // MAIN_H_
|