-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRobotMap.h
77 lines (60 loc) · 1.5 KB
/
RobotMap.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
#ifndef ROBOT_MAP_H
#define ROBOT_MAP_H
// Pneumatic controller
#define PNEUMATIC_CONTROLLER 2
// ***** Drive Base *****
// Left motor controllers
#define LEFT_TALON_1 3
#define LEFT_TALON_2 4
#define LEFT_TALON_3 9
// left Brushless motor controllers
#define LEFT_SPARK_1 21
#define LEFT_SPARK_2 22
#define LEFT_SPARK_3 23
// Right motor controllers
#define RIGHT_TALON_1 6
#define RIGHT_TALON_2 7
#define RIGHT_TALON_3 8
#define RIGHT_SPARK_1 24
#define RIGHT_SPARK_2 25
#define RIGHT_SPARK_3 26
// NavX
// Port found automatically
// Limelight
// #define LIMELIGHT
// Gear shifting solenoids
#define GEAR_SHIFTER_SOLENOID 2
// Drivetrain encoders
#define LEFT_ENCODER_A 0
#define LEFT_ENCODER_B 1
#define RIGHT_ENCODER_A 2
#define RIGHT_ENCODER_B 3
// ***** Claw *****
// Claw opening and closing solenoid
#define CLAW_SOLENOID 1
// Claw raising and lowering solenoid
#define PIVOT_SOLENOID 0
#define PIVOT_SOLENOID_REVERSED 7
// ***** Elevator *****
// Elevator motor
#define ELEVATOR_TALON 5
// Elevator encoder
#define ELEVATOR_ENCODER_A 4
#define ELEVATOR_ENCODER_B 5
// Elevator limit switches
#define ELEVATOR_LIMIT_SWITCH_BOTTOM 6
#define ELEVATOR_LIMIT_SWITCH_MIDDLE 7
#define ELEVATOR_LIMIT_SWITCH_TOP 8
// ***** Bling *****
// Blinkin LED strips
#define LEFT_BLINKIN 0
#define RIGHT_BLINKIN 1
// ***** Cargo *****
// Cargo intake
#define CARGO_ARM_TALON 11
#define CARGO_INTAKE_TALON 12
#define CARGO_LIGHT_SENSOR 3
// Cargo out
#define CARGO_BACK_OUT_TALON 13
#define CARGO_FRONT_OUT_TALON 14
#endif