Create toggle gear button port constants
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Constants.java
1 package org.usfirst.frc.team3501.robot;
2
3 import edu.wpi.first.wpilibj.DoubleSolenoid;
4 import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
5 import edu.wpi.first.wpilibj.SPI;
6
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 {
14 public static class OI {
15 public final static int LEFT_STICK_PORT = 0;
16 public final static int RIGHT_STICK_PORT = 1;
17 public final static int TOGGLE_WINCH_PORT = 0;
18 public final static int TOGGLE_FLYWHEEL_PORT = 0;
19 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
20 public final static int TOGGLE_GEAR_PORT = 0;
21 }
22
23 public static class Shooter {
24 // MOTOR CONTROLLERS
25 public static final int FLY_WHEEL = 0;
26 public static final int INDEX_WHEEL = 0;
27 public final static int TOGGLE_WINCH_PORT = 0;
28
29 public final static int TOGGLE_FLYWHEEL_PORT = 0;
30 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
31 }
32
33 public static class DriveTrain {
34 // GEARS
35 public static final int MODULE_NUMBER = 10, LEFT_FORWARD = 6,
36 LEFT_REVERSE = 5, RIGHT_FORWARD = 0, RIGHT_REVERSE = 1;
37 public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward;
38 public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse;
39
40 // MOTOR CONTROLLERS
41 public static final int FRONT_LEFT = 1;
42 public static final int FRONT_RIGHT = 3;
43 public static final int REAR_LEFT = 2;
44 public static final int REAR_RIGHT = 4;
45
46 // ENCODERS
47 public static final int ENCODER_LEFT_A = 1;
48 public static final int ENCODER_LEFT_B = 0;
49 public static final int ENCODER_RIGHT_A = 2;
50 public static final int ENCODER_RIGHT_B = 3;
51
52 public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0;
53 }
54
55 public static class Climber {
56 // MOTOR CONTROLLERS
57 public static final int MOTOR_VAL = 1;
58 }
59
60 public static class Intake {
61 public static final int INTAKE_ROLLER_PORT = 0;
62 }
63
64 public static enum Direction {
65 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
66 }
67 }