package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Jaguar;

/**
 * This class rotates the motor in the direction of the target, based on the
 * relative location of the target as determined by TargetLocator
 *
 * @author (Mark Macerato, Team 3167)
 * @version (March 2, 2014)
 */
class Motor {

    private double acceptableRange;  //The distance to the left or right of the target in inches that is acceptable
    private Jaguar motor = new Jaguar(1, 1);  //The Jaguar that controls the rotating motor that aligns with the target

    public void trackTheTarget() {  //Rotates the motor aligning with the target.  If the camera is too far to the left, it roates the motor right, and vice versa

//        if (TargetLocator.getRelPositionOfTarget() > acceptableRange) {  //if the target is too far to the right
//
//            motor.set(-0.3);
//
//        } else if (TargetLocator.getRelPositionOfTarget() < -acceptableRange) {  //if the target is too far to the left
//
//            motor.set(0.3);
//
//        } else if (TargetLocator.getRelPositionOfTarget() < acceptableRange && TargetLocator.getRelPositionOfTarget() > -acceptableRange) {  //If the camera is aligned
//
//            motor.set(0.0);
//
//        }

    }
}

@@ -66,22 +66,21 @@
 wpilibj.
-Jaguar
+Servo
 ;%0D%0A%0D%0A/**
@@ -449,22 +449,21 @@
 private 
-Jaguar
+Servo
  motor =
@@ -467,22 +467,21 @@
 r = new 
-Jaguar
+Servo
 (1, 1); 
@@ -491,14 +491,13 @@
 The 
-Jaguar
+Servo
  tha
@@ -723,18 +723,16 @@
 ersa%0D%0A%0D%0A
-//
         
@@ -837,22 +837,18 @@
  right%0D%0A
-//%0D%0A//
+%0D%0A
         
@@ -865,22 +865,17 @@
 set(
--0.3);%0D%0A//%0D%0A//
+1.0);%0D%0A%0D%0A
     
@@ -991,22 +991,18 @@
 e left%0D%0A
-//%0D%0A//
+%0D%0A
         
@@ -1021,19 +1021,15 @@
 t(0.
-3
+0
 );%0D%0A
-//%0D%0A//
+%0D%0A
     
@@ -1193,22 +1193,18 @@
 ligned%0D%0A
-//%0D%0A//
+%0D%0A
         
@@ -1221,21 +1221,25 @@
 set(
-0.0);%0D%0A//%0D%0A//
+motor.get());%0D%0A%0D%0A
     

Update Motor.java