/*----------------------------------------------------------------------------*/
/* 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 edu.wpi.first.wpilibj.templates;


import edu.wpi.first.wpilibj.IterativeRobot;

/**
 * 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 Team1482Robot extends IterativeRobot {
    /**
     * This function is run when the robot is first started up and should be
     * used for any initialization code.
     */
    public void robotInit() {

    }
    
    //Do when the robot is disabled
    public void disabledInit() {
        
    }
    //*************Autonomous*************
    
    public void autonomousInit() {
        getWatchdog().setEnabled(false);
        getWatchdog().setExpiration(0.5);
    }
    
    /**
     * This function is called periodically during autonomous
     */
    public void autonomousPeriodic() {

    }

    //*************TELE OP*************
    public void teleopInit(){
        getWatchdog().setEnabled(true);
    }
    
    public void teleopPeriodic() {
        getWatchdog().feed();
    }
    
    /**
     * This function is called periodically during test mode
     */
    public void testPeriodic() {
        getWatchdog().feed();
    }
    
}

@@ -1133,24 +1133,81 @@
 botInit() %7B%0D
+%0A        System.out.println(%22RobotInit() completed. %5Cn%22)%0D
 %0A%0D%0A    %7D%0D%0A  
@@ -1273,32 +1273,104 @@
 sabledInit() %7B%0D%0A
+        m_disabledPeriodicLoops = 0 //resets loop counter on disabling%0D%0A
         %0D%0A    %7D%0D
@@ -1448,32 +1448,104 @@
 nomousInit() %7B%0D%0A
+        m_autoPeriodicLoops = 0 //resets loop counter on entering auto%0D%0A
         getWatch
@@ -1795,24 +1795,24 @@
 **********%0D%0A
-
     public v
@@ -1830,16 +1830,88 @@
 nit()%7B%0D%0A
+        m_telePeriodicLoops = 0 //resets loop counter on entering tele%0D%0A
         

Reset loop counters when entering periodic loops.