// 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.DriverStation;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.usfirst.frc330.wpilibj.CFA634SPI;
import org.usfirst.frc330.Beachbot2013Java.Robot;
import org.usfirst.frc330.Beachbot2013Java.RobotMap;
/*
 * $Log: UpdateLCD.java,v $
 * Revision 1.4  2013-02-16 04:54:57  jross
 * rename package to org.usfirst.frc330.wpilibj to match other packages
 *
 * Revision 1.3  2013-02-09 22:57:45  echan
 * Robot Builder removed blank lines
 *
 * Revision 1.2  2013-02-09 02:26:29  jross
 * Add LCD method forwarding
 *
 */
/**
 *
 */
public class  UpdateLCD extends Command {
    public UpdateLCD() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
	
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
        requires(Robot.lCD);
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
        setRunWhenDisabled(true);
    }
    // Called just before this Command runs the first time
    protected void initialize() {
        SmartDashboard.putNumber("AngleToTarget", 0);
        SmartDashboard.putNumber("RangeToTarget", 0);
        SmartDashboard.putNumber("Gyro Angle", 0);
        SmartDashboard.putNumber("Batt Voltage", 0);
        
        Robot.lCD.addLine(CFA634SPI.Line.kUser1, "Batt Voltage");
        Robot.lCD.addLine(CFA634SPI.Line.kUser2, "AngleToTarget");
        Robot.lCD.addLine(CFA634SPI.Line.kUser3, "RangeToTarget");
        Robot.lCD.addLine(CFA634SPI.Line.kUser4, "Gyro Angle");
    }
    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
        SmartDashboard.putNumber("Batt Voltage", DriverStation.getInstance().getBatteryVoltage());
        SmartDashboard.putNumber("Gyro Angle", RobotMap.chassisGyro.getAngle());
    }
    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return false;
    }
    // Called once after isFinished returns true
    protected void end() {
    }
    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
}

@@ -862,16 +862,84 @@
 ava,v $%0A
+ * Revision 1.5  2013-02-16 06:27:17  jross%0A * run when disabled%0A *%0A
  * Revis
@@ -2023,29 +2023,29 @@
 User2, %22
-A
+a
 ngleTo
-Target
+Center
 %22);%0A    
@@ -2090,29 +2090,32 @@
 User3, %22
-RangeToTarget
+distanceToCenter
 %22);%0A    
@@ -2450,24 +2450,55 @@
 etAngle());%0A
+        Robot.lCD.updateLCD();%0A
     %7D%0A    //

make LCD actually update, and change camera variables to Allen's names