Add JoystickButton objects and constants for Drivetrain, Climer, Intake, and Shooter
[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
13public 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
14ff5362 19 public final static int TOGGLE_WINCH_PORT = 0;
2291f7b3 20 public final static int TOGGLE_FLYWHEEL_PORT = 0;
21 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
cef1f36d 22 public final static int REVERSE_INDEXWHEEL_PORT = 0;
f388cdf4 23 public final static int TOGGLE_GEAR_PORT = 0;
cef1f36d
RR
24 public final static int TOGGLE_INTAKE_PORT = 0;
25 public final static int REVERSE_INTAKE_PORT = 0;
d17d868d 26 }
38a404b3 27
f91f2b55 28 public static class Shooter {
29 // MOTOR CONTROLLERS
30 public static final int FLY_WHEEL = 0;
31 public static final int INDEX_WHEEL = 0;
adfc0171 32 public final static int TOGGLE_WINCH_PORT = 0;
d0a3a99e 33
7099e02a 34 public final static int TOGGLE_FLYWHEEL_PORT = 0;
35 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
268b0048 36
37 public final static int HALL_EFFECT_PORT = 4;
e74e5e9d
SG
38 }
39
d17d868d 40 public static class DriveTrain {
df8c00f0 41 // GEARS
d2757206
AD
42 public static final int MODULE_NUMBER = 10, LEFT_GEAR_PISTON_FORWARD = 6,
43 LEFT_GEAR_PISTON_REVERSE = 5, RIGHT_GEAR_PISTON_FORWARD = 0,
44 RIGHT_GEAR_PISTON_REVERSE = 1;
df8c00f0
AD
45 public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward;
46 public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse;
47
cef1f36d
RR
48 public static final double CLIMBER_SPEED = 5;
49
d17d868d 50 // MOTOR CONTROLLERS
68301d98
CZ
51 public static final int FRONT_LEFT = 1;
52 public static final int FRONT_RIGHT = 3;
53 public static final int REAR_LEFT = 2;
b06733de 54 public static final int REAR_RIGHT = 4;
38a404b3 55
d17d868d 56 // ENCODERS
93b4c266
CZ
57 public static final int ENCODER_LEFT_A = 1;
58 public static final int ENCODER_LEFT_B = 0;
b06733de
CZ
59 public static final int ENCODER_RIGHT_A = 2;
60 public static final int ENCODER_RIGHT_B = 3;
bf921ece
CZ
61
62 public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0;
cef1f36d
RR
63
64 public final static int TRIGGER_DRIVE_PORT = 0;
d17d868d 65 }
fa4e4a97 66
10d788c3
AD
67 public static class Intake {
68 public static final int INTAKE_ROLLER_PORT = 0;
44c26e0c 69
cef1f36d
RR
70 public final static int HOLD_INTAKE_PORT = 0;
71
f761d7ba
SG
72 }
73
d17d868d 74 public static enum Direction {
75 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
76 }
38a404b3 77}