move instantiation of physical components to map
[ozzloy@gmail.com/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / RobotMap.java
index bfb2bea698ec249228da2ef910e76660268ebce6..f3528cbde0f59f89cb89b044e37275db10557148 100644 (file)
@@ -1,29 +1,31 @@
 package org.usfirst.frc.team3501.robot;
 
+import edu.wpi.first.wpilibj.CANJaguar;
 import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
+import edu.wpi.first.wpilibj.SpeedController;
 
 public class RobotMap {
-    // Driver Station
+
+    // driver station
     public static final int LEFT_JOYSTICK_PORT = 0, RIGHT_JOYSTICK_PORT = 1;
 
     public static final double MIN_DRIVE_JOYSTICK_INPUT = 0.1,
                                MIN_ARM_JOYSTICK_INPUT   = 0.1;
 
-    // Drivetrain
-    public static final int FRONT_LEFT_ADDRESS = 4, FRONT_RIGHT_ADDRESS = 5,
-                            REAR_LEFT_ADDRESS  = 3, REAR_RIGHT_ADDRESS  = 6;
+    // drivetrain
+    public static final SpeedController
+      frontLeft  = new CANJaguar(4), frontRight = new CANJaguar(5),
+      rearLeft   = new CANJaguar(3), rearRight  = new CANJaguar(6);
 
     public static final double MAX_DRIVE_SPEED = 0.7;
 
-    // Claw
-    public static final int CLAW_FORWARD_CHANNEL = 0, CLAW_REVERSE_CHANNEL = 1;
+    // arm
+    public static final int LEFT_WINCH_ADDRESS = 2, RIGHT_WINCH_ADDRESS = 7;
 
-    public static final Value OPEN = Value.kForward, CLOSED = Value.kReverse;
+    public static final double ARM_ADJUST_SPEED = 0.3;
 
-    // Arm
-    public static final int LEFT_WINCH_ADDRESS = 2, RIGHT_WINCH_ADDRESS = 7;
+    // claw
+    public static final int CLAW_FORWARD_CHANNEL = 0, CLAW_REVERSE_CHANNEL = 1;
 
-    // Auton
-    public static final double OVER_STEP_TIME = 1.2, OVER_STEP_SPEED = 0.7,
-                               PAST_STEP_TIME = 1.5, PAST_STEP_SPEED = 0.5;
+    public static final Value OPEN = Value.kForward, CLOSED = Value.kReverse;
 }