Package frc.robot
Class RobotContainer
java.lang.Object
frc.robot.RobotContainer
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 button mappings) should be declared here.-
Field Summary
Modifier and TypeFieldDescriptionfinal edu.wpi.first.wpilibj2.command.button.CommandXboxController
static final Rangefinder
static final Servo
static final XRPDrivetrain
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Command
Use this to pass the autonomous command to the mainRobot
class.
-
Field Details
-
m_xrpDrivetrain
-
m_servo
-
m_rangefinder
-
m_controller
public final edu.wpi.first.wpilibj2.command.button.CommandXboxController m_controller
-
-
Constructor Details
-
RobotContainer
public RobotContainer()The container for the robot. Contains subsystems, OI devices, and commands.
-
-
Method Details
-
getAutonomousCommand
public edu.wpi.first.wpilibj2.command.Command getAutonomousCommand()Use this to pass the autonomous command to the mainRobot
class.- Returns:
- the command to run in autonomous
-