Package frc.robot
Class RobotContainer
java.lang.Object
frc.robot.RobotContainer
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
FieldsConstructor Summary
ConstructorsConstructorDescriptionCreates a new RobotContainer and initializes all robot subsystems and commands.Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Command
Provides the command to run during autonomous mode.edu.wpi.first.networktables.NetworkTable
getTable()
Returns the NetworkTable used for debugging.
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