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 voiddisabledInit()This function is called once each time the robot enters Disabled mode.voiddisabledPeriodic()Periodic code for disabled mode should go here.voidrobotInit()This function is run when the robot is first started up and should be used for any initialization code.voidrobotPeriodic()This function is called every robot packet, no matter the mode.voidteleopInit()Initialization code for teleop mode should go here.voidteleopPeriodic()This function is called periodically during operator control.voidtestPeriodic()This function is called periodically during test mode.Methods inherited from class edu.wpi.first.wpilibj.IterativeRobotBase
autonomousInit, autonomousPeriodic, testInitMethods 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:
robotInitin 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:
robotPeriodicin 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:
disabledInitin classIterativeRobotBase
-
disabledPeriodic
public void disabledPeriodic() throws java.lang.ExceptionDescription copied from class:IterativeRobotBasePeriodic code for disabled mode should go here.- Overrides:
disabledPeriodicin classIterativeRobotBase- Throws:
java.lang.Exception
-
teleopInit
public void teleopInit()Description copied from class:IterativeRobotBaseInitialization 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:
teleopInitin classIterativeRobotBase
-
teleopPeriodic
public void teleopPeriodic() throws java.lang.ExceptionThis function is called periodically during operator control.- Overrides:
teleopPeriodicin classIterativeRobotBase- Throws:
java.lang.Exception
-
testPeriodic
public void testPeriodic()This function is called periodically during test mode.- Overrides:
testPeriodicin classIterativeRobotBase
-