Package frc.robot

Class Robot

All Implemented Interfaces:
AutoCloseable

public class Robot extends TimedRobot
The methods in this class are called automatically corresponding to each mode, as described in the TimedRobot documentation. If you change the name of this class or the package after creating this project, you must also update the Main.java file in the project.
  • Constructor Details

    • Robot

      public Robot()
      This function is run when the robot is first started up and should be used for any initialization code.
  • Method Details

    • robotPeriodic

      public void robotPeriodic()
      This function is called every 20 ms, no matter the mode. Use this for items like diagnostics that you want ran during disabled, autonomous, teleoperated and test.

      This runs after the mode specific periodic functions, but before LiveWindow and SmartDashboard integrated updating.

      Overrides:
      robotPeriodic in class IterativeRobotBase
    • disabledInit

      public void disabledInit()
      This function is called once each time the robot enters Disabled mode.
      Overrides:
      disabledInit in class IterativeRobotBase
    • disabledPeriodic

      public void disabledPeriodic()
      Overrides:
      disabledPeriodic in class IterativeRobotBase
    • autonomousInit

      public void autonomousInit()
      This autonomous runs the autonomous command selected by your RobotContainer class.
      Overrides:
      autonomousInit in class IterativeRobotBase
    • autonomousPeriodic

      public void autonomousPeriodic()
      This function is called periodically during autonomous.
      Overrides:
      autonomousPeriodic in class IterativeRobotBase
    • teleopInit

      public void teleopInit()
      Overrides:
      teleopInit in class IterativeRobotBase
    • teleopPeriodic

      public void teleopPeriodic()
      This function is called periodically during operator control.
      Overrides:
      teleopPeriodic in class IterativeRobotBase
    • testInit

      public void testInit()
      Overrides:
      testInit in class IterativeRobotBase
    • testPeriodic

      public void testPeriodic()
      This function is called periodically during test mode.
      Overrides:
      testPeriodic in class IterativeRobotBase
    • simulationInit

      public void simulationInit()
      This function is called once when the robot is first started up.
      Overrides:
      simulationInit in class IterativeRobotBase
    • simulationPeriodic

      public void simulationPeriodic()
      This function is called periodically whilst in simulation.
      Overrides:
      simulationPeriodic in class IterativeRobotBase