make everything 80 columns or less
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / RobotMap.java
1 package org.usfirst.frc3501.RiceCatRobot;
2
3 import edu.wpi.first.wpilibj.DoubleSolenoid;
4 import 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 */
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;
20
21 public static final double DISTANCE_PER_PULSE =
22 ((3.66 / 5.14) * 6 * Math.PI) / 256;
23
24 public static final int ARM_LEFT = 2, ARM_RIGHT = 7;
25 public static final double ARM_HIGH_SPEED = 0.5, ARM_LOW_SPEED = 0.5;
26
27 // Claw
28 public static final int SOLENOID_FORWARD = 0, SOLENOID_REVERSE = 1,
29 MODULE_NUMBER = 0;
30 public final static Value open = DoubleSolenoid.Value.kForward,
31 close = DoubleSolenoid.Value.kReverse;
32 public static double DRIVE_DEAD_ZONE = 0.25;
33 // Compressor
34 public static final int COMPRESSOR_PORT = 0;
35
36 public static void init() {
37 }
38
39 public static enum Direction {
40 LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
41 }
42 }