change gyro from old imu to new adx imu
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Constants.java
1 package org.usfirst.frc.team3501.robot;
2
3 import edu.wpi.first.wpilibj.SPI;
4
5 /**
6 * The Constants stores constant values for all subsystems. This includes the
7 * port values for motors and sensors, as well as important operational
8 * constants for subsystems such as max and min values.
9 */
10
11 public class Constants {
12 public static class OI {
13 public final static int LEFT_STICK_PORT = 0;
14 public final static int RIGHT_STICK_PORT = 1;
15 public final static int TOGGLE_WINCH_PORT = 0;
16 public final static int TOGGLE_FLYWHEEL_PORT = 0;
17 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
18 }
19
20 public static class Shooter {
21 // MOTOR CONTROLLERS
22 public static final int FLY_WHEEL = 0;
23 public static final int INDEX_WHEEL = 0;
24 public final static int TOGGLE_WINCH_PORT = 0;
25
26 public final static int TOGGLE_FLYWHEEL_PORT = 0;
27 public final static int TOGGLE_INDEXWHEEL_PORT = 0;
28 }
29
30 public static class DriveTrain {
31 // MOTOR CONTROLLERS
32 public static final int FRONT_LEFT = 1;
33 public static final int FRONT_RIGHT = 3;
34 public static final int REAR_LEFT = 2;
35 public static final int REAR_RIGHT = 4;
36
37 // ENCODERS
38 public static final int ENCODER_LEFT_A = 1;
39 public static final int ENCODER_LEFT_B = 0;
40 public static final int ENCODER_RIGHT_A = 2;
41 public static final int ENCODER_RIGHT_B = 3;
42
43 public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0;
44 }
45
46 public static class Climber {
47 // MOTOR CONTROLLERS
48 public static final int MOTOR_VAL = 1;
49 }
50
51 public static class Intake {
52 public static final int INTAKE_ROLLER_PORT = 0;
53 }
54
55 public static enum Direction {
56 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
57 }
58 }