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; | |
fc01fb0f | 17 | public static final int GAME_PAD_PORT = 2; |
cef1f36d | 18 | |
8e04baaf | 19 | public final static int TOGGLE_GEAR_PORT = 5; |
5e93f308 | 20 | public final static int RUN_INTAKE_PORT = 1; |
9ca89e45 | 21 | public final static int REVERSE_INTAKE_PORT = 2; |
fc01fb0f CZ |
22 | |
23 | public final static int RUN_INDEXWHEEL_PORT = 1; | |
24 | public final static int REVERSE_INDEXWHEEL_PORT = 2; | |
f56e6ebf | 25 | public static final int BRAKE_CANTALONS_PORT = 5; |
9ca89e45 CZ |
26 | public static final int COAST_CANTALONS_PORT = 6; |
27 | ||
28 | public final static int TOGGLE_FLYWHEEL_PORT = 1; | |
29 | public static final int REVERSE_FLYWHEEL_PORT = 3; | |
30 | public static final int INCREASE_SHOOTER_SPEED_PORT = 8; | |
31 | public static final int DECREASE_SHOOTER_SPEED_PORT = 7; | |
32 | public static final int RESET_SHOOTER_SPEED_PORT = 5; | |
33 | public static final int TOGGLE_GEAR_MANIPULATOR_PORT = 2; | |
d17d868d | 34 | } |
38a404b3 | 35 | |
f91f2b55 | 36 | public static class Shooter { |
37 | // MOTOR CONTROLLERS | |
5e93f308 CZ |
38 | public static final int FLY_WHEEL1 = 5; |
39 | public static final int FLY_WHEEL2 = 6; | |
40 | public static final int INDEX_WHEEL = 7; | |
268b0048 | 41 | |
0a4e4ffd | 42 | public final static int HALL_EFFECT_PORT = 9; |
e74e5e9d SG |
43 | } |
44 | ||
d17d868d | 45 | public static class DriveTrain { |
fc01fb0f CZ |
46 | public static final int PISTON_MODULE = 10; |
47 | public static final int GEAR_MANIPULATOR_PISTON_FORWARD = 4, | |
48 | GEAR_MANIPULATOR_PISTON_REVERSE = 5; | |
9ca89e45 CZ |
49 | public static final int LEFT_GEAR_PISTON_FORWARD = 1, |
50 | LEFT_GEAR_PISTON_REVERSE = 0, RIGHT_GEAR_PISTON_FORWARD = 3, | |
cb8e86cb | 51 | RIGHT_GEAR_PISTON_REVERSE = 2; |
fc01fb0f CZ |
52 | public static final Value FORWARD_PISTON_VALUE = DoubleSolenoid.Value.kForward; |
53 | public static final Value REVERSE_PISTON_VALUE = DoubleSolenoid.Value.kReverse; | |
df8c00f0 | 54 | |
d17d868d | 55 | // MOTOR CONTROLLERS |
68301d98 CZ |
56 | public static final int FRONT_LEFT = 1; |
57 | public static final int FRONT_RIGHT = 3; | |
58 | public static final int REAR_LEFT = 2; | |
b06733de | 59 | public static final int REAR_RIGHT = 4; |
38a404b3 | 60 | |
d17d868d | 61 | // ENCODERS |
93b4c266 CZ |
62 | public static final int ENCODER_LEFT_A = 1; |
63 | public static final int ENCODER_LEFT_B = 0; | |
b06733de CZ |
64 | public static final int ENCODER_RIGHT_A = 2; |
65 | public static final int ENCODER_RIGHT_B = 3; | |
bf921ece CZ |
66 | |
67 | public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0; | |
d17d868d | 68 | } |
fa4e4a97 | 69 | |
10d788c3 | 70 | public static class Intake { |
8e04baaf | 71 | public static final int INTAKE_ROLLER_PORT = 8; |
44c26e0c | 72 | |
f761d7ba SG |
73 | } |
74 | ||
d17d868d | 75 | public static enum Direction { |
76 | LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD; | |
77 | } | |
38a404b3 | 78 | } |