Package frc.robot

Class Robot

java.lang.Object
edu.wpi.first.wpilibj.RobotBase
edu.wpi.first.wpilibj.IterativeRobotBase
org.littletonrobotics.junction.LoggedRobot
frc.robot.Robot
All Implemented Interfaces:
AutoCloseable

public class Robot extends org.littletonrobotics.junction.LoggedRobot
Runs tasks on Roborio in this file.
  • 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 class IterativeRobotBase
    • 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 class IterativeRobotBase
    • disabledInit

      public void disabledInit()
      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
    • findReplayLog

      public static String findReplayLog()
      Finds the path to a log file for replay, using the following priorities: 1. The value of the "AKIT_LOG_PATH" environment variable, if set 2. The file currently open in AdvantageScope, if available 3. The result of the prompt displayed to the user