Class Robot

java.lang.Object
org.wpilib.framework.RobotBase
org.littletonrobotics.junction.LoggedOpModeRobot
com.stuypulse.robot.Robot
All Implemented Interfaces:
AutoCloseable

public class Robot extends org.littletonrobotics.junction.LoggedOpModeRobot
Robot Class

This is the main class for robot code, instantiated in Main It extends TimedRobot, meaning that the methods in this class are called automatically during specific states of the robot.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.wpilib.util.Alert
     
    final org.wpilib.command3.Scheduler
     
    final org.wpilib.command3.button.CommandGamepad
     
    final Swerve
     
    final Vision
     

    Fields inherited from class org.littletonrobotics.junction.LoggedOpModeRobot

    DEFAULT_PERIOD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
     
    private void
     
    private void
     
    private void
     
    private void
     
    static boolean
    Checks the alliance the robot is on
    void
     

    Methods inherited from class org.littletonrobotics.junction.LoggedOpModeRobot

    addAnnotatedOpMode, addAnnotatedOpModeClasses, addOpMode, addOpMode, addOpMode, addOpMode, addOpMode, addOpMode, addOpMode, addOpMode, clearOpModes, close, disabledExit, disabledInit, disabledPeriodic, driverStationConnected, endCompetition, getLoopStartTime, getPeriod, nonePeriodic, printWatchdogEpochs, publishOpModes, removeOpMode, setLoopOverrunWarningTimeout, setUseTiming, simulationInit, simulationPeriodic, startCompetition

    Methods inherited from class org.wpilib.framework.RobotBase

    getMainThreadId, getOpMode, getOpModeId, getRobotName, getRuntimeType, isAutonomous, isAutonomousEnabled, isDisabled, isEnabled, isReal, isSimulation, isTeleop, isTeleopEnabled, isUtility, isUtilityEnabled, startRobot, suppressExitWarning

    Methods inherited from class Object

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

  • Constructor Details

  • Method Details

    • isBlue

      public static boolean isBlue()
      Checks the alliance the robot is on
      Returns:
      true if the robot is on the blue alliance, false if the robot is on the red alliance, and false if alliance cannot be determined.
    • configureLogging

      private void configureLogging()
    • configureDefaultCommands

      private void configureDefaultCommands()
    • configureButtonBindings

      private void configureButtonBindings()
    • configureAutons

      private void configureAutons()
    • configureSysIds

      private void configureSysIds()
    • robotPeriodic

      public void robotPeriodic()
      Overrides:
      robotPeriodic in class org.littletonrobotics.junction.LoggedOpModeRobot