/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package robot;

import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Victor;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the IterativeRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class LoganRover extends IterativeRobot {
    private Joystick joystickOne;
    private DigitalInput leftAutoSwitch;
    private DigitalInput rightAutoSwitch;
    
    private RobotDrive drivetrain;
    private Intake intake;

    private Jaguar leftDrive, rightDrive;           //Drivetrain Motors
    private Victor intakeMotorOne, intakeMotorTwo;  //Intake Motors
    private Victor unobtaniumMotor;                 //Also part of intake system

    /**
     * This function is run when the robot is first started up and should be
     * used for any initialization code.
     */
    public void robotInit() {
        joystickOne = new Joystick(1);
        leftAutoSwitch = new DigitalInput(1);
        rightAutoSwitch = new DigitalInput(2);

        leftDrive = new Jaguar(3);
        rightDrive = new Jaguar(1);
        intakeMotorOne = new Victor(2);
        intakeMotorTwo = new Victor(4);
        unobtaniumMotor = new Victor(5);

        drivetrain = new RobotDrive(leftDrive, rightDrive);
        drivetrain.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);

        intake = new Intake(joystickOne, intakeMotorOne, intakeMotorTwo, unobtaniumMotor);
    }

    /**
     * This function is called periodically during autonomous
     */
    public void autonomousPeriodic() {
        //TODO: Add old Logan Rover autonomous
        drivetrain.arcadeDrive(0, 0);

        if (leftAutoSwitch.get() == true)
        {
            //Put us into left autonomous
        } else if (rightAutoSwitch.get() == true) {
            //Put us into right autonomous
        } else {
            //Middle position
        }
    }

    /**
     * This function is called periodically during operator control
     */
    public void teleopPeriodic() {
        drivetrain.arcadeDrive(joystickOne);

        intake.doAction();
    }
    
}

@@ -701,16 +701,52 @@
 tDrive;%0A
+import edu.wpi.first.wpilibj.Timer;%0A
 import e
@@ -1273,74 +1273,262 @@
 ch;%0A
-    %0A    private RobotDrive drivetrain;%0A    private Intake intake;
+%0A    private Timer autoTimer;                        //Normally would use match time, but can't find that.%0A    %0A    private RobotDrive drivetrain;                  //Motors on Drivetrain%0A    private Intake intake;                          //Intake System
 %0A%0A  
@@ -2040,24 +2040,58 @@
 lInput(2);%0A%0A
+        autoTimer = new Timer();%0A%0A
         left
@@ -2498,32 +2498,185 @@
 mMotor);%0A    %7D%0A%0A
+    /**%0A     * This function is called once in the beginning of autonomous.%0A     */%0A    public void autonomousInit() %7B%0A        autoTimer.start();%0A    %7D%0A%0A
     /**%0A     * T
@@ -2768,32 +2768,63 @@
 ousPeriodic() %7B%0A
+        getWatchdog().feed();%0A%0A
         //TODO: 
@@ -3257,32 +3257,63 @@
 eopPeriodic() %7B%0A
+        getWatchdog().feed();%0A%0A
         drivetra

Add initial timer for autonomous and support of the Watchdog.