Package frc8768.robot

Class Robot

java.lang.Object
edu.wpi.first.wpilibj.RobotBase
edu.wpi.first.wpilibj.IterativeRobotBase
edu.wpi.first.wpilibj.TimedRobot
frc8768.robot.Robot
All Implemented Interfaces:
AutoCloseable

public class Robot extends edu.wpi.first.wpilibj.TimedRobot
The VM is configured to automatically run this class, and to call the methods 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

    Fields
    Modifier and Type
    Field
    Description
    static Robot
    Robot instance, can't be seen across threads
    Vision API instance

    Fields inherited from class edu.wpi.first.wpilibj.TimedRobot

    kDefaultPeriod
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Runs when first entering Autonomous mode
    void
    Runs every 20ms during Autonomous
    static Robot
    Certain properties cannot be seen across Threads.
     
    void
    This method is run when the robot is first started up and should be used for any initialization code.
    void
    Runs even if the Robot is disabled.
    void
    Runs at the start of Teleop state
    void
    Runs every 20ms of Teleop
    void
    Runs at the start of Test state
    void
    Runs every 20ms of Test

    Methods inherited from class edu.wpi.first.wpilibj.TimedRobot

    addPeriodic, addPeriodic, addPeriodic, addPeriodic, close, endCompetition, getLoopStartTime, startCompetition

    Methods inherited from class edu.wpi.first.wpilibj.IterativeRobotBase

    autonomousExit, disabledExit, disabledInit, disabledPeriodic, driverStationConnected, enableLiveWindowInTest, getPeriod, isLiveWindowEnabledInTest, loopFunc, printWatchdogEpochs, setNetworkTablesFlushEnabled, simulationInit, simulationPeriodic, teleopExit, testExit

    Methods inherited from class edu.wpi.first.wpilibj.RobotBase

    getMainThreadId, getRuntimeType, isAutonomous, isAutonomousEnabled, isDisabled, isEnabled, isReal, isSimulation, isTeleop, isTeleopEnabled, isTest, isTestEnabled, startRobot, suppressExitWarning

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • instance

      public static Robot instance
      Robot instance, can't be seen across threads
    • vision

      public LimelightVision vision
      Vision API instance
  • Constructor Details

    • Robot

      public Robot()
  • Method Details

    • getInstance

      public static Robot getInstance()
      Certain properties cannot be seen across Threads.
      Returns:
      The Robot instance;
    • robotInit

      public void robotInit()
      This method is run when the robot is first started up and should be used for any initialization code.
      Overrides:
      robotInit in class edu.wpi.first.wpilibj.IterativeRobotBase
    • getVision

      public Vision getVision()
    • robotPeriodic

      public void robotPeriodic()
      Runs even if the Robot is disabled.
      Overrides:
      robotPeriodic in class edu.wpi.first.wpilibj.IterativeRobotBase
    • autonomousInit

      public void autonomousInit()
      Runs when first entering Autonomous mode
      Overrides:
      autonomousInit in class edu.wpi.first.wpilibj.IterativeRobotBase
    • autonomousPeriodic

      public void autonomousPeriodic()
      Runs every 20ms during Autonomous
      Overrides:
      autonomousPeriodic in class edu.wpi.first.wpilibj.IterativeRobotBase
    • teleopInit

      public void teleopInit()
      Runs at the start of Teleop state
      Overrides:
      teleopInit in class edu.wpi.first.wpilibj.IterativeRobotBase
    • teleopPeriodic

      public void teleopPeriodic()
      Runs every 20ms of Teleop
      Overrides:
      teleopPeriodic in class edu.wpi.first.wpilibj.IterativeRobotBase
    • testInit

      public void testInit()
      Runs at the start of Test state
      Overrides:
      testInit in class edu.wpi.first.wpilibj.IterativeRobotBase
    • testPeriodic

      public void testPeriodic()
      Runs every 20ms of Test
      Overrides:
      testPeriodic in class edu.wpi.first.wpilibj.IterativeRobotBase