Package frc.robot

Class RobotContainer

java.lang.Object
frc.robot.RobotContainer

public class RobotContainer extends Object
Main robot configuration class that binds controls and commands to subsystems. This class serves as the robot's command center, managing all subsystem instances and their associated commands.

Features include:

  • Driver control configuration
  • Command button mappings
  • Autonomous command selection
  • Subsystem instantiation and management

The class follows a centralized control pattern, with all robot behaviors defined through command bindings and default commands.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final edu.wpi.first.wpilibj2.command.button.Trigger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new RobotContainer and initializes all robot subsystems and commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.wpi.first.wpilibj2.command.Command
    Provides the command to run during autonomous mode.
    edu.wpi.first.networktables.NetworkTable
    Returns the NetworkTable used for debugging.

    Methods inherited from class java.lang.Object

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

    • endgame

      public final edu.wpi.first.wpilibj2.command.button.Trigger endgame
  • Constructor Details

    • RobotContainer

      public RobotContainer()
      Creates a new RobotContainer and initializes all robot subsystems and commands. Performs the following setup:
      • Silences joystick warnings for unplugged controllers
      • Disables controller rumble
      • Configures button bindings for commands
  • Method Details

    • getAutonomousCommand

      public edu.wpi.first.wpilibj2.command.Command getAutonomousCommand()
      Provides the command to run during autonomous mode. Currently returns a placeholder command that prints a message, indicating no autonomous routine is configured.
      Returns:
      the command to run in autonomous mode
    • getTable

      public edu.wpi.first.networktables.NetworkTable getTable()
      Returns the NetworkTable used for debugging.
      Returns:
      the NetworkTable used for debugging