-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobotMap.java
More file actions
84 lines (68 loc) · 2.21 KB
/
RobotMap.java
File metadata and controls
84 lines (68 loc) · 2.21 KB
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
package frc.robot;
import edu.wpi.first.wpilibj.I2C;
import edu.wpi.first.wpilibj.I2C.Port;
/**
* A map mapping all the robot's elecronic component into integer ports.
* <p>
*
*/
public interface RobotMap {
//Detail Motor Components
//every time when you are change port in RobotMap change it in Robot Characterization python file!!!!!!!
public interface MotorPorts {
public static final int
chassisRightBack = 0, //Victor
chassisRightMiddle = 1, //Talon
chassisRightFront = 2, //victor
chassisLeftBack = 3, //Victor
collector = 4, //Victor
passer = 5, //Victor. The motor which passes a power cell from the storage to the shooter.
aimer = 6, //Talon. Aims the shooter.
lifter = 7, //Victor
thrower = 8, //Victor
spinner = 9, //Talon
climbUp = 12, //Talon
climbPull = 13, //Victor
chassisLeftFront = 14, //Victor
chassisLeftMiddle = 15; //Talon
//TODO: check correct ports
}
//Detail Piston Components
public interface PistonPorts {
}
//Detail Digital components
public interface DigitalPorts {
public static final int
leftChassisEncoderA = 0,
leftChassisEncoderB = 1,
throwerEncoderB = 2,
throwerEncoderA = 3,
rolletaMicroSwitchDown = 4,
rolletaMicroSwitchUp = 5;
}
public interface AnalogPorts{
public static final int
storageUltrasonic = 1,
collectorUltrasonic = 0;
public static final I2C.Port
colorSensor = Port.kOnboard;
}
//Detail Joysticks used
public interface JoystickPorts {
public static final int
rightChasisJS = 0,
leftChassisJS = 1,
operatorJS = 2;
}
//Detail the Buttons of each Joystick
public interface ButtonPorts {
public static final int
operatorJSX = 1,
operatorJSY = 2,
operatorJSB = 3,
operatorJSA = 4;
}
//Detail Cameras used
public interface CameraPorts {
}
}