Fix code changes
[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
18 // Need to fill in the port numbers of the following buttons
19 public final static int TOGGLE_FLYWHEEL_PORT = 4;
20 public final static int RUN_INDEXWHEEL_PORT = 1;
21 public final static int REVERSE_INDEXWHEEL_PORT = 2;
22 public final static int TOGGLE_GEAR_PORT = 5;
23 public final static int RUN_INTAKE_PORT = 1;
24 public final static int REVERSE_INTAKE_PORT = 4;
25 public static final int INCREASE_SHOOTER_SPEED_PORT = 6;
26 public static final int DECREASE_SHOOTER_SPEED_PORT = 2;
27
28 public static final int CHANGE_CAMERA_VIEW = 8;
29
30 public static final int BRAKE_CANTALONS_PORT = 5;
31 public static final int COAST_CANTALONS_PORT = 3;
32
33 }
34
35 public static class Shooter {
36 // MOTOR CONTROLLERS
37 public static final int FLY_WHEEL1 = 5;
38 public static final int FLY_WHEEL2 = 6;
39 public static final int INDEX_WHEEL = 7;
40
41 public final static int HALL_EFFECT_PORT = 9;
42
43 public final static int TOGGLE_INDEXER = 6;
44
45 public static final int MODULE_NUMBER = 10, PISTON_FORWARD = 4,
46 PISTON_REVERSE = 5;
47
48 // public static final int MODULE_NUMBER = 10, PISTON = 5;
49 public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward;
50 public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse;
51 }
52
53 public static class DriveTrain {
54 // GEARS
55 public static final int PISTON_MODULE = 10, LEFT_GEAR_PISTON_FORWARD = 0,
56 LEFT_GEAR_PISTON_REVERSE = 1, RIGHT_GEAR_PISTON_FORWARD = 3,
57 RIGHT_GEAR_PISTON_REVERSE = 2;
58 public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward;
59 public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse;
60
61 public final static int TOGGLE_DRIVE_PISTON = 7;
62
63 // MOTOR CONTROLLERS
64 public static final int FRONT_LEFT = 1;
65 public static final int FRONT_RIGHT = 3;
66 public static final int REAR_LEFT = 2;
67 public static final int REAR_RIGHT = 4;
68
69 // ENCODERS
70 public static final int ENCODER_LEFT_A = 1;
71 public static final int ENCODER_LEFT_B = 0;
72 public static final int ENCODER_RIGHT_A = 2;
73 public static final int ENCODER_RIGHT_B = 3;
74
75 public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0;
76 }
77
78 public static class Intake {
79 public static final int INTAKE_ROLLER_PORT = 8;
80
81 }
82
83 public static enum Direction {
84 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
85 }
86 }