Package com.stuypulse.robot
Class RobotContainer
java.lang.Object
com.stuypulse.robot.RobotContainer
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 theRobot
periodic methods (other than the scheduler calls). Instead, the structure of the robot (including
subsystems, commands, and trigger mappings) should be declared here.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static edu.wpi.first.wpilibj.smartdashboard.SendableChooser<edu.wpi.first.wpilibj2.command.Command>final edu.wpi.first.wpilibj2.command.button.CommandXboxControllerprivate final Feederprivate final Handoffprivate final Intakeprivate final LEDControllerprivate final Shooterprivate final CommandSwerveDrivetrainprivate final LimelightVision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is used to configure the autonomous commands.private voidThis method is used to configure button bindings for controlling the robot.private voidedu.wpi.first.wpilibj2.command.CommandUse this to pass the autonomous command to the mainRobotclass.
-
Field Details
-
driver
-
feeder
-
intake
-
shooter
-
swerve
-
vision
-
leds
-
handoff
-
autonChooser
private static edu.wpi.first.wpilibj.smartdashboard.SendableChooser<edu.wpi.first.wpilibj2.command.Command> autonChooser
-
-
Constructor Details
-
RobotContainer
public RobotContainer()The container for the robot. Contains subsystems, OI devices, and commands.
-
-
Method Details
-
configureDefaultCommands
-
configureButtonBindings
This method is used to configure button bindings for controlling the robot. -
configureAutons
This method is used to configure the autonomous commands. -
getAutonomousCommand
Use this to pass the autonomous command to the mainRobotclass.- Returns:
- The command to run in autonomous
-