change package names
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / robot / RobotMap.java
CommitLineData
4b8a525f 1package org.usfirst.frc3501.RiceCatRobot.robot;
f11ce98e
KZ
2
3import edu.wpi.first.wpilibj.DoubleSolenoid;
4import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
5
6/**
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
10 * floating around.
11 */
12public 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;
20
21 public static final double DISTANCE_PER_PULSE = ((3.66 / 5.14) * 6 * Math.PI) / 256;
22
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;
25
26 // Claw
27 public static final int SOLENOID_FORWARD = 0, SOLENOID_REVERSE = 1,
28 MODULE_NUMBER = 0;
29 public final static Value open = DoubleSolenoid.Value.kForward,
30 close = DoubleSolenoid.Value.kReverse;
31 public static double DRIVE_DEAD_ZONE = 0.25;
32 // Compressor
33 public static final int COMPRESSOR_PORT = 0;
34
35 public static void init() {
36 }
37
38 public static enum Direction {
39 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
40 }
41}