Saved
[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 // have two buttons: one for shifting to high gear and the other for shifting to
14 // low gear
15
16 public class Constants {
17 public static class OI {
18 public final static int XBOX_CONTROLLER_PORT = 0;
19 // public final static int RIGHT_STICK_PORT = 1;
20 public static final int GAME_PAD_PORT = 2;
21
22 // Xbox Controller Ports
23 // public final static int TOGGLE_GEAR_PORT = 5;
24 public final static int SHIFT_LOW_PORT = 9;
25 public final static int SHIFT_HIGH_PORT = 10;
26 public final static int RUN_INTAKE_PORT = 6;
27 public final static int REVERSE_INTAKE_PORT = 8;
28 public final static int RUN_INDEXWHEEL_PORT = 5;
29 public final static int REVERSE_INDEXWHEEL_PORT = 7;
30 public static final int BRAKE_CANTALONS_PORT = 1;
31 public static final int COAST_CANTALONS_PORT = 3;
32 public static final int CLIMB_PORT = 4;
33
34 // Game Pad Ports
35 public final static int TOGGLE_FLYWHEEL_PORT = 1;
36 public static final int REVERSE_FLYWHEEL_PORT = 3;
37 public static final int INCREASE_SHOOTER_SPEED_PORT = 8;
38 public static final int DECREASE_SHOOTER_SPEED_PORT = 7;
39 public static final int RESET_SHOOTER_SPEED_PORT = 5;
40 public static final int TOGGLE_GEAR_MANIPULATOR_PORT = 2;
41
42 }
43
44 public static class Shooter {
45 // MOTOR CONTROLLERS
46 public static final int FLY_WHEEL1 = 5;
47 public static final int FLY_WHEEL2 = 6;
48 public static final int INDEX_WHEEL = 7;
49
50 public final static int HALL_EFFECT_PORT = 9;
51 }
52
53 public static class DriveTrain {
54 public static final int PISTON_MODULE = 10;
55 public static final int GEAR_MANIPULATOR_PISTON_FORWARD = 4,
56 GEAR_MANIPULATOR_PISTON_REVERSE = 5;
57
58 public static final int DRIVETRAIN_GEAR_FORWARD = 0,
59 DRIVETRAIN_GEAR_REVERSE = 1;
60
61 public static final Value FORWARD_PISTON_VALUE = DoubleSolenoid.Value.kForward;
62 public static final Value REVERSE_PISTON_VALUE = DoubleSolenoid.Value.kReverse;
63
64 // MOTOR CONTROLLERS
65 public static final int FRONT_LEFT = 1;
66 public static final int FRONT_RIGHT = 3;
67 public static final int REAR_LEFT = 2;
68 public static final int REAR_RIGHT = 4;
69
70 // ENCODERS
71 public static final int ENCODER_LEFT_A = 1;
72 public static final int ENCODER_LEFT_B = 0;
73 public static final int ENCODER_RIGHT_A = 2;
74 public static final int ENCODER_RIGHT_B = 3;
75
76 public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0;
77 }
78
79 public static class Intake {
80 public static final int INTAKE_ROLLER_PORT = 8;
81 }
82
83 public static class Climber {
84 public static final int WINCH_PORT = 0;
85 }
86
87 public static enum Direction {
88 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
89 }
90 }