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;
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;
21 public final static int TOGGLE_GEAR_PORT
= 0;
23 public static final int TOGGLE_CAMERA_FEEDS
= 4;
27 public static class Shooter
{
29 public static final int FLY_WHEEL
= 0;
30 public static final int INDEX_WHEEL
= 0;
31 public final static int TOGGLE_WINCH_PORT
= 0;
33 public final static int TOGGLE_FLYWHEEL_PORT
= 0;
34 public final static int TOGGLE_INDEXWHEEL_PORT
= 0;
37 public static class DriveTrain
{
39 public static final int MODULE_NUMBER
= 10, LEFT_GEAR_PISTON_FORWARD
= 6,
40 LEFT_GEAR_PISTON_REVERSE
= 5, RIGHT_GEAR_PISTON_FORWARD
= 0,
41 RIGHT_GEAR_PISTON_REVERSE
= 1;
42 public static final Value HIGH_GEAR
= DoubleSolenoid
.Value
.kForward
;
43 public static final Value LOW_GEAR
= DoubleSolenoid
.Value
.kReverse
;
46 public static final int FRONT_LEFT
= 1;
47 public static final int FRONT_RIGHT
= 3;
48 public static final int REAR_LEFT
= 2;
49 public static final int REAR_RIGHT
= 4;
52 public static final int ENCODER_LEFT_A
= 1;
53 public static final int ENCODER_LEFT_B
= 0;
54 public static final int ENCODER_RIGHT_A
= 2;
55 public static final int ENCODER_RIGHT_B
= 3;
57 public static final SPI
.Port GYRO_PORT
= SPI
.Port
.kOnboardCS0
;
60 public static class Intake
{
61 public static final int INTAKE_ROLLER_PORT
= 0;
65 public static enum Direction
{
66 LEFT
, RIGHT
, DOWN
, UP
, FORWARD
, BACKWARD
;
69 public class CameraFeeds
{
70 public static final int btCamCenter
= 1;
71 public static final int btCamRight
= 2;
73 public static final String camNameCenter
= "cam0";
74 public static final String camNameRight
= "cam1";
75 public static final int imgQuality
= 60;