1 package org
.usfirst
.frc
.team3501
.robot
;
3 import edu
.wpi
.first
.wpilibj
.DoubleSolenoid
;
4 import edu
.wpi
.first
.wpilibj
.DoubleSolenoid
.Value
;
5 import edu
.wpi
.first
.wpilibj
.SPI
;
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.
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;
18 // Need to fill in the port numbers of the following buttons
19 public final static int TOGGLE_WINCH_PORT
= 0;
20 public final static int TOGGLE_FLYWHEEL_PORT
= 4;
21 public final static int RUN_INDEXWHEEL_PORT
= 1;
22 public final static int REVERSE_INDEXWHEEL_PORT
= 2;
23 public final static int TOGGLE_GEAR_PORT
= 5;
24 public final static int RUN_INTAKE_PORT
= 1;
25 public final static int REVERSE_INTAKE_PORT
= 4;
26 public static final int INCREASE_SHOOTER_SPEED_PORT
= 6;
27 public static final int DECREASE_SHOOTER_SPEED_PORT
= 2;
28 public static final int CHANGE_CAMERA_VIEW
= 6;
31 public static class Shooter
{
33 public static final int FLY_WHEEL1
= 5;
34 public static final int FLY_WHEEL2
= 6;
35 public static final int INDEX_WHEEL
= 7;
37 public final static int HALL_EFFECT_PORT
= 9;
39 public static final int PISTON_MODULE
= 10, PISTON_FORWARD
= 0,
41 public static final Value HIGH_GEAR
= DoubleSolenoid
.Value
.kForward
;
42 public static final Value LOW_GEAR
= DoubleSolenoid
.Value
.kReverse
;
45 public static class DriveTrain
{
47 public static final int PISTON_MODULE
= 10, LEFT_GEAR_PISTON_FORWARD
= 0,
48 LEFT_GEAR_PISTON_REVERSE
= 1, RIGHT_GEAR_PISTON_FORWARD
= 2,
49 RIGHT_GEAR_PISTON_REVERSE
= 3;
50 public static final Value HIGH_GEAR
= DoubleSolenoid
.Value
.kForward
;
51 public static final Value LOW_GEAR
= DoubleSolenoid
.Value
.kReverse
;
54 public static final int FRONT_LEFT
= 1;
55 public static final int FRONT_RIGHT
= 3;
56 public static final int REAR_LEFT
= 2;
57 public static final int REAR_RIGHT
= 4;
60 public static final int ENCODER_LEFT_A
= 1;
61 public static final int ENCODER_LEFT_B
= 0;
62 public static final int ENCODER_RIGHT_A
= 2;
63 public static final int ENCODER_RIGHT_B
= 3;
65 public static final SPI
.Port GYRO_PORT
= SPI
.Port
.kOnboardCS0
;
68 public static class Intake
{
69 public static final int INTAKE_ROLLER_PORT
= 8;
73 public static enum Direction
{
74 LEFT
, RIGHT
, DOWN
, UP
, FORWARD
, BACKWARD
;