@@ -0,0 +1,1346 @@
+%0Apackage edu.wpi.first.wpilibj.templates;%0A%0A%0Aimport edu.wpi.first.wpilibj.Encoder;%0A%0Aimport edu.wpi.first.wpilibj.SpeedController;%0Aimport edu.wpi.first.wpilibj.Timer;%0Aimport edu.wpi.first.wpilibj.Victor;%0A%0A/**%0A *%0A * @author joseph%0A */%0Apublic class EncoderDrive implements Runnable %7B%0A    %0A    Main robot; %0A    boolean cocking;%0A    %0A   private final SpeedController Single = new Victor(5);   %0A   %0A    private final Encoder SingleEncoder = new Encoder(1,2);%0A    %0A    %0A        //Starts the encoders%0A              %0A        Controller control;%0A       %0A         public EncoderDrive(Main robot) %7B%0A        this.robot = robot;        %0A        control = new Controller(3);      %0A        SingleEncoder.start();%0A        int count = SingleEncoder.get ();%0A        System.out.println(SingleEncoder.get());%0A%0A%7D%0A                             %0A          public void run() %7B%0A        %0A        new Thread(control).start();%0A         while (true) %7B%0A%0A            while (200 %3E= SingleEncoder.get())%7B%0A             if (control.button%5B1%5D) %7B%0A                cocking = true;%0A                Single.set (1);           %0A            %7D%0A         %7D%0A            %0A         while (0 %3C SingleEncoder.get())%7B   %0A            if (control.button%5B3%5D) %7B%0A                cocking = false;%0A                Single.set (-1);%0A%0A            %7D %0A         %7D   %0A             Timer.delay(.1);%0A        %7D%0A    %7D%0A%7D%0A

Create EncoderDrive.java