// RobotBuilder Version: 0.0.2
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in th future.
package org.usfirst.frc330.Beachbot2013Java.commands;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.usfirst.frc330.Beachbot2013Java.Robot;
/**
 *
 */
public class  TurnCamera extends TurnGyroRel {
    public TurnCamera() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
	super(0,0,0,true);
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
        requires(Robot.chassis);
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
    }
    public TurnCamera(double angle) {
        super(0);
    }
    public TurnCamera(double angle, double tolerance) {
        super(0, tolerance);
    }
    public TurnCamera(double angle, double tolerance, double timeout, boolean stopAtEnd) {
        super(0, tolerance, timeout, stopAtEnd);
    }
    // Called just before this Command runs the first time
    protected void initialize() {
        angle = SmartDashboard.getNumber("angleToCenter", 0);
        super.initialize();
    }
    /**
     * Not Used
     * @param angle 
     */
    public void setParam1(double angle) {
    }
    
    
}

@@ -881,19 +881,19 @@
 super(0,
-0,0
+3,3
 ,true);%0A
@@ -1116,16 +1116,28 @@
  super(0
+, 3, 3, true
 );%0A    %7D
@@ -1219,16 +1219,25 @@
 olerance
+, 3, true
 );%0A    %7D
@@ -1566,16 +1566,75 @@
 lize();%0A
+//        System.out.println(%22Angle to Center: %22 + angle);%0A
     %7D%0A  
@@ -1736,16 +1736,73 @@
   %7D%0A    
-%0A    
+public Command copy() %7B%0A        return new TurnCamera();%0A    %7D
 %0A%7D%0A

fix TurnCamera