Added comments for button locations
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Constants.java
1 package org.usfirst.frc.team3501.robot;
2
3 /**
4 * The Constants stores constant values for all subsystems. This includes the
5 * port values for motors and sensors, as well as important operational
6 * constants for subsystems such as max and min values.
7 */
8
9 public class Constants {
10 public static class OI {
11 public final static int LEFT_STICK_PORT = 0;
12 public final static int RIGHT_STICK_PORT = 1;
13 public final static int RIGHT_BUTTON_1 = 1; // Center button
14 public final static int RIGHT_BUTTON_2 = 2; // Side button
15 public final static int RIGHT_BUTTON_3 = 3; // Lower left button
16 public final static int RIGHT_BUTTON_4 = 4; // Lower right button
17 public final static int RIGHT_BUTTON_5 = 5; // Upper left button
18 public final static int RIGHT_BUTTON_6 = 6; // Upper right button
19 public final static int LEFT_BUTTON_1 = 1; // Center button
20 public final static int LEFT_BUTTON_2 = 2; // Lower middle button
21 public final static int LEFT_BUTTON_3 = 3; // Upper left button
22 public final static int LEFT_BUTTON_4 = 4; // Upper right button
23 public final static int LEFT_BUTTON_5 = 5; // Lower left button
24 public final static int LEFT_BUTTON_6 = 6; // Lower right button
25 public final static int LEFT_TRIGGER_BUTTON = 0;
26 public final static int RIGHT_TRIGGER_BUTTON = 0;
27 public final static int RIGHT_LOWER_TRIGGER = 0; // Button below back
28 // trigger
29 }
30
31 public static class Shooter {
32 // MOTOR CONTROLLERS
33 public static final int FLY_WHEEL = 0;
34 public static final int INDEX_WHEEL = 0;
35 public final static int TOGGLE_WINCH_PORT = 0;
36
37 public final static int TOGGLE_FLYWHEEL_PORT = 0;
38 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
39 }
40
41 public static class DriveTrain {
42 // MOTOR CONTROLLERS
43 public static final int FRONT_LEFT = 1;
44 public static final int FRONT_RIGHT = 3;
45 public static final int REAR_LEFT = 2;
46 public static final int REAR_RIGHT = 4;
47
48 // ENCODERS
49 public static final int ENCODER_LEFT_A = 1;
50 public static final int ENCODER_LEFT_B = 0;
51 public static final int ENCODER_RIGHT_A = 2;
52 public static final int ENCODER_RIGHT_B = 3;
53 }
54
55 public static class Climber {
56 // MOTOR CONTROLLERS
57 public static final int MOTOR_VAL = 1;
58 }
59
60 public static class Intake {
61 public static final int INTAKE_ROLLER_PORT = 0;
62 }
63
64 public static enum Direction {
65 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
66 }
67 }