competition fixes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Constants.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
df8c00f0
AD
3import edu.wpi.first.wpilibj.DoubleSolenoid;
4import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
bf921ece
CZ
5import 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
8275a069
RR
13// have two buttons: one for shifting to high gear and the other for shifting to
14// low gear
15
38a404b3 16public class Constants {
d17d868d 17 public static class OI {
8275a069 18 public final static int XBOX_CONTROLLER_PORT = 0;
fc01fb0f 19 public static final int GAME_PAD_PORT = 2;
cef1f36d 20
8275a069 21 // Xbox Controller Ports
8275a069
RR
22 public final static int SHIFT_LOW_PORT = 9;
23 public final static int SHIFT_HIGH_PORT = 10;
24 public final static int RUN_INTAKE_PORT = 6;
25 public final static int REVERSE_INTAKE_PORT = 8;
26 public final static int RUN_INDEXWHEEL_PORT = 5;
27 public final static int REVERSE_INDEXWHEEL_PORT = 7;
28 public static final int BRAKE_CANTALONS_PORT = 1;
29 public static final int COAST_CANTALONS_PORT = 3;
30 public static final int CLIMB_PORT = 4;
f74d236d 31 public static final int STOP_CLIMB_PORT = 2;
8275a069
RR
32
33 // Game Pad Ports
f74d236d
CZ
34 public final static int RUN_FLYWHEEL_PORT = 1;
35 public static final int STOP_FLYWHEEL_PORT = 3;
36 public static final int REVERSE_FLYWHEEL_PORT = 4;
9ca89e45
CZ
37 public static final int INCREASE_SHOOTER_SPEED_PORT = 8;
38 public static final int DECREASE_SHOOTER_SPEED_PORT = 7;
f74d236d
CZ
39
40 public static final int RESET_SHOOTER_SPEED_PORT = 2;
41 public static final int SHIFT_GEAR_MANIPULATOR_HIGH_PORT = 6;
42 public static final int SHIFT_GEAR_MANIPULATOR_LOW_PORT = 5;
43
44 // 5 is piston out (gear manipulator)
45 // 6 is piston in (gear manipulator)
ba9f0b12 46
d17d868d 47 }
38a404b3 48
f91f2b55 49 public static class Shooter {
50 // MOTOR CONTROLLERS
5e93f308
CZ
51 public static final int FLY_WHEEL1 = 5;
52 public static final int FLY_WHEEL2 = 6;
53 public static final int INDEX_WHEEL = 7;
268b0048 54
0a4e4ffd 55 public final static int HALL_EFFECT_PORT = 9;
e74e5e9d
SG
56 }
57
d17d868d 58 public static class DriveTrain {
fc01fb0f
CZ
59 public static final int PISTON_MODULE = 10;
60 public static final int GEAR_MANIPULATOR_PISTON_FORWARD = 4,
61 GEAR_MANIPULATOR_PISTON_REVERSE = 5;
150f450f
CZ
62
63 public static final int DRIVETRAIN_GEAR_FORWARD = 0,
64 DRIVETRAIN_GEAR_REVERSE = 1;
65
fc01fb0f
CZ
66 public static final Value FORWARD_PISTON_VALUE = DoubleSolenoid.Value.kForward;
67 public static final Value REVERSE_PISTON_VALUE = DoubleSolenoid.Value.kReverse;
df8c00f0 68
d17d868d 69 // MOTOR CONTROLLERS
68301d98
CZ
70 public static final int FRONT_LEFT = 1;
71 public static final int FRONT_RIGHT = 3;
72 public static final int REAR_LEFT = 2;
b06733de 73 public static final int REAR_RIGHT = 4;
38a404b3 74
d17d868d 75 // ENCODERS
93b4c266
CZ
76 public static final int ENCODER_LEFT_A = 1;
77 public static final int ENCODER_LEFT_B = 0;
b06733de
CZ
78 public static final int ENCODER_RIGHT_A = 2;
79 public static final int ENCODER_RIGHT_B = 3;
bf921ece
CZ
80
81 public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0;
d17d868d 82 }
fa4e4a97 83
10d788c3 84 public static class Intake {
8e04baaf 85 public static final int INTAKE_ROLLER_PORT = 8;
150f450f 86 }
44c26e0c 87
150f450f
CZ
88 public static class Climber {
89 public static final int WINCH_PORT = 0;
f761d7ba
SG
90 }
91
d17d868d 92 public static enum Direction {
93 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
94 }
38a404b3 95}