1 package org
.usfirst
.frc3501
.RiceCatRobot
;
3 import edu
.wpi
.first
.wpilibj
.DoubleSolenoid
;
4 import edu
.wpi
.first
.wpilibj
.DoubleSolenoid
.Value
;
7 * The RobotMap is a mapping from the ports sensors and actuators are wired into
8 * to a variable name. This provides flexibility changing wiring, makes checking
9 * the wiring easier and significantly reduces the number of magic numbers
12 public class RobotMap
{
13 public final static int LEFT_STICK_PORT
= 0, RIGHT_STICK_PORT
= 1;
14 public final static int TRIGGER_PORT
= 1, TOGGLE_PORT
= 2,
15 TOGGLE_COMPRESSOR_PORT
= 11;
16 public static final int DRIVE_FRONT_LEFT
= 4, DRIVE_FRONT_RIGHT
= 5,
17 DRIVE_REAR_LEFT
= 3, DRIVE_REAR_RIGHT
= 6;
18 public static final int DRIVE_LEFT_A
= 3, DRIVE_LEFT_B
= 4,
19 DRIVE_RIGHT_A
= 2, DRIVE_RIGHT_B
= 1;
21 public static final double DISTANCE_PER_PULSE
= ((3.66 / 5.14) * 6 * Math
.PI
) / 256;
23 public static final int ARM_LEFT
= 2, ARM_RIGHT
= 7;
24 public static final double ARM_HIGH_SPEED
= 0.5, ARM_LOW_SPEED
= 0.5;
27 public static final int SOLENOID_FORWARD
= 0, SOLENOID_REVERSE
= 1,
29 public final static Value open
= DoubleSolenoid
.Value
.kForward
,
30 close
= DoubleSolenoid
.Value
.kReverse
;
31 public static double DRIVE_DEAD_ZONE
= 0.25;
33 public static final int COMPRESSOR_PORT
= 0;
35 public static void init() {
38 public static enum Direction
{
39 LEFT
, RIGHT
, DOWN
, UP
, FORWARD
, BACKWARD
;