Commit | Line | Data |
---|---|---|
38a404b3 KZ |
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 { | |
99d3a628 KZ |
10 | public static class OI { |
11 | public final static int LEFT_STICK_PORT = 0; | |
9fb915da KZ |
12 | public final static int RIGHT_STICK_PORT = 1; |
13 | public final static int TRIGGER_PORT = 1; | |
ab492540 | 14 | |
9fb915da KZ |
15 | public final static int DEC_SHOOTER_SPD_PORT = 2; |
16 | public final static int INC_SHOOTER_SPD_PORT = 3; | |
17 | public final static int SHOOT_PORT = 4; | |
18 | public final static int PRINT_PORT = 5; | |
99d3a628 | 19 | } |
38a404b3 | 20 | |
99d3a628 | 21 | public static class DriveTrain { |
27615e61 | 22 | // Drivetrain Motor Related Ports |
99d3a628 KZ |
23 | public static final int FRONT_LEFT = 0; |
24 | public static final int FRONT_RIGHT = 0; | |
25 | public static final int REAR_LEFT = 0; | |
26 | public static final int REAR_RIGHT = 0; | |
27615e61 KZ |
27 | |
28 | // Encoder related ports | |
99d3a628 KZ |
29 | public final static int ENCODER_LEFT_A = 3; |
30 | public final static int ENCODER_LEFT_B = 4; | |
31 | public final static int ENCODER_RIGHT_A = 2; | |
32 | public final static int ENCODER_RIGHT_B = 1; | |
33 | } | |
38a404b3 | 34 | |
40348cab | 35 | public static class Shooter { |
e9234163 | 36 | public static final int PORT = 0; |
da0c4bd8 E |
37 | |
38 | public static enum State { | |
39 | RUNNING, STOPPED; | |
40 | } | |
40348cab E |
41 | } |
42 | ||
99d3a628 KZ |
43 | public static enum Direction { |
44 | LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD; | |
45 | } | |
38a404b3 | 46 | } |