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
FieldsModifier and TypeFieldDescriptionfinal CommandXboxController
final CommandXboxController
final WebController
final CommandXboxController
static Robot.RobotRunType
final CommandXboxController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the user's selected autonomous command.void
periodic()
void
Setup buttons for newly attached controllersvoid
Start simulationvoid
Update simulationvoid
Update viz
-
Field Details
-
runType
-
driver
-
operator
-
pitController
-
altOperator
-
testController
-
-
Constructor Details
-
RobotContainer
The container for the robot. Contains subsystems, OI devices, and commands.
-
-
Method Details
-
queryControllers
public void queryControllers()Setup buttons for newly attached controllers -
getAutonomousCommand
Gets the user's selected autonomous command.- Returns:
- Returns autonomous command selected.
-
updateViz
public void updateViz()Update viz -
startSimulation
public void startSimulation()Start simulation -
updateSimulation
public void updateSimulation()Update simulation -
periodic
public void periodic()
-