Class RobotContainer

java.lang.Object
com.stuypulse.robot.RobotContainer

public class RobotContainer extends Object

Robot Container Class

This class is where the bulk of the robot should be declared. Since Command-based is a "declarative" paradigm, very little robot logic should actually be handled in the Robot periodic methods (other than the scheduler calls). Instead, the structure of the robot (including subsystems, commands, and trigger mappings) should be declared here.
  • Field Details

  • Constructor Details

    • RobotContainer

      public RobotContainer()
      The container for the robot. Contains subsystems, OI devices, and commands.
  • Method Details

    • configureDefaultCommands

      private void configureDefaultCommands()
    • configureButtonBindings

      private void configureButtonBindings()
      This method is used to configure button bindings for controlling the robot.
    • configureAutons

      public void configureAutons()
      This method is used to configure the autonomous commands.
    • getAutonomousCommand

      public edu.wpi.first.wpilibj2.command.Command getAutonomousCommand()
      Use this to pass the autonomous command to the main Robot class.
      Returns:
      The command to run in autonomous