move instantiation of physical components to map
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / RobotMap.java
index 37dad27752feac1f4b7ba04e5bc6528a7aa95d5f..f3528cbde0f59f89cb89b044e37275db10557148 100644 (file)
@@ -1,6 +1,8 @@
 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 {
 
@@ -11,8 +13,9 @@ public class RobotMap {
                                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;
+    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;