Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
df8c00f0 AD |
3 | import edu.wpi.first.wpilibj.DoubleSolenoid; |
4 | import edu.wpi.first.wpilibj.DoubleSolenoid.Value; | |
bf921ece CZ |
5 | import edu.wpi.first.wpilibj.SPI; |
6 | ||
38a404b3 KZ |
7 | /** |
8 | * The Constants stores constant values for all subsystems. This includes the | |
9 | * port values for motors and sensors, as well as important operational | |
10 | * constants for subsystems such as max and min values. | |
11 | */ | |
12 | ||
13 | public class Constants { | |
d17d868d | 14 | public static class OI { |
6b4ab3d7 CZ |
15 | public final static int LEFT_STICK_PORT = 0; |
16 | public final static int RIGHT_STICK_PORT = 1; | |
cef1f36d RR |
17 | |
18 | // Need to fill in the port numbers of the following buttons | |
5e93f308 CZ |
19 | public final static int TOGGLE_FLYWHEEL_PORT = 4; |
20 | public final static int RUN_INDEXWHEEL_PORT = 1; | |
0a4e4ffd | 21 | public final static int REVERSE_INDEXWHEEL_PORT = 2; |
8e04baaf | 22 | public final static int TOGGLE_GEAR_PORT = 5; |
5e93f308 | 23 | public final static int RUN_INTAKE_PORT = 1; |
0a4e4ffd | 24 | public final static int REVERSE_INTAKE_PORT = 4; |
5e93f308 CZ |
25 | public static final int INCREASE_SHOOTER_SPEED_PORT = 6; |
26 | public static final int DECREASE_SHOOTER_SPEED_PORT = 2; | |
6bc81b55 | 27 | |
9adc1a28 | 28 | public static final int CHANGE_CAMERA_VIEW = 6; |
6bc81b55 | 29 | |
f56e6ebf CZ |
30 | public static final int BRAKE_CANTALONS_PORT = 5; |
31 | public static final int COAST_CANTALONS_PORT = 3; | |
6bc81b55 | 32 | |
d17d868d | 33 | } |
38a404b3 | 34 | |
f91f2b55 | 35 | public static class Shooter { |
36 | // MOTOR CONTROLLERS | |
5e93f308 CZ |
37 | public static final int FLY_WHEEL1 = 5; |
38 | public static final int FLY_WHEEL2 = 6; | |
39 | public static final int INDEX_WHEEL = 7; | |
268b0048 | 40 | |
0a4e4ffd | 41 | public final static int HALL_EFFECT_PORT = 9; |
02cde7ca | 42 | |
b092ede2 | 43 | <<<<<<< HEAD |
49b8e933 RR |
44 | public final static int TOGGLE_INDEXER = 8; |
45 | ||
cb8e86cb | 46 | public static final int MODULE_NUMBER = 10, PISTON_FORWARD = 4, |
49b8e933 | 47 | PISTON_REVERSE = 5; |
6bc81b55 | 48 | |
b092ede2 RR |
49 | ======= |
50 | public static final int PISTON_MODULE = 10, PISTON_FORWARD = 0, | |
51 | PISTON_REVERSE = 1; | |
52 | >>>>>>> Add code to alternate pistons in runIndexWheelContinuous | |
02cde7ca RR |
53 | public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward; |
54 | public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse; | |
e74e5e9d SG |
55 | } |
56 | ||
d17d868d | 57 | public static class DriveTrain { |
df8c00f0 | 58 | // GEARS |
5e93f308 | 59 | public static final int PISTON_MODULE = 10, LEFT_GEAR_PISTON_FORWARD = 0, |
cb8e86cb CZ |
60 | LEFT_GEAR_PISTON_REVERSE = 1, RIGHT_GEAR_PISTON_FORWARD = 3, |
61 | RIGHT_GEAR_PISTON_REVERSE = 2; | |
df8c00f0 AD |
62 | public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward; |
63 | public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse; | |
64 | ||
49b8e933 RR |
65 | public final static int TOGGLE_DRIVE_PISTON = 7; |
66 | ||
d17d868d | 67 | // MOTOR CONTROLLERS |
68301d98 CZ |
68 | public static final int FRONT_LEFT = 1; |
69 | public static final int FRONT_RIGHT = 3; | |
70 | public static final int REAR_LEFT = 2; | |
b06733de | 71 | public static final int REAR_RIGHT = 4; |
38a404b3 | 72 | |
d17d868d | 73 | // ENCODERS |
93b4c266 CZ |
74 | public static final int ENCODER_LEFT_A = 1; |
75 | public static final int ENCODER_LEFT_B = 0; | |
b06733de CZ |
76 | public static final int ENCODER_RIGHT_A = 2; |
77 | public static final int ENCODER_RIGHT_B = 3; | |
bf921ece CZ |
78 | |
79 | public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0; | |
d17d868d | 80 | } |
fa4e4a97 | 81 | |
10d788c3 | 82 | public static class Intake { |
8e04baaf | 83 | public static final int INTAKE_ROLLER_PORT = 8; |
44c26e0c | 84 | |
f761d7ba SG |
85 | } |
86 | ||
d17d868d | 87 | public static enum Direction { |
88 | LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD; | |
89 | } | |
38a404b3 | 90 | } |