Package frc.team670.robot
Class Robot
java.lang.Object
edu.wpi.first.wpilibj.RobotBase
edu.wpi.first.wpilibj.IterativeRobotBase
edu.wpi.first.wpilibj.TimedRobot
frc.team670.robot.Robot
public class Robot extends TimedRobot
The VM is configured to automatically run this class, and to call the
functions 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 build.gradle file in the
project.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Robot()
-
Method Summary
Modifier and Type Method Description void
disabledInit()
This function is called once each time the robot enters Disabled mode.void
disabledPeriodic()
Periodic code for disabled mode should go here.void
robotInit()
This function is run when the robot is first started up and should be used for any initialization code.void
robotPeriodic()
This function is called every robot packet, no matter the mode.void
teleopInit()
Initialization code for teleop mode should go here.void
teleopPeriodic()
This function is called periodically during operator control.void
testPeriodic()
This function is called periodically during test mode.Methods inherited from class edu.wpi.first.wpilibj.IterativeRobotBase
autonomousInit, autonomousPeriodic, testInit
Methods inherited from class edu.wpi.first.wpilibj.RobotBase
free, getBooleanProperty, isDisabled, isEnabled, startRobot
-
Field Details
-
Constructor Details
-
Robot
public Robot()
-
-
Method Details
-
robotInit
public void robotInit()This function is run when the robot is first started up and should be used for any initialization code.- Overrides:
robotInit
in classIterativeRobotBase
-
robotPeriodic
public void robotPeriodic()This function is called every robot packet, 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 classIterativeRobotBase
-
disabledInit
public void disabledInit()This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled.- Overrides:
disabledInit
in classIterativeRobotBase
-
disabledPeriodic
public void disabledPeriodic() throws java.lang.ExceptionDescription copied from class:IterativeRobotBase
Periodic code for disabled mode should go here.- Overrides:
disabledPeriodic
in classIterativeRobotBase
- Throws:
java.lang.Exception
-
teleopInit
public void teleopInit()Description copied from class:IterativeRobotBase
Initialization code for teleop mode should go here.Users should override this method for initialization code which will be called each time the robot enters teleop mode.
- Overrides:
teleopInit
in classIterativeRobotBase
-
teleopPeriodic
public void teleopPeriodic() throws java.lang.ExceptionThis function is called periodically during operator control.- Overrides:
teleopPeriodic
in classIterativeRobotBase
- Throws:
java.lang.Exception
-
testPeriodic
public void testPeriodic()This function is called periodically during test mode.- Overrides:
testPeriodic
in classIterativeRobotBase
-