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 trigger mappings) should be declared here.-
Field Summary
Modifier and TypeFieldDescriptionfinal edu.wpi.first.wpilibj.smartdashboard.SendableChooser<edu.wpi.first.wpilibj2.command.Command>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Command
aimAtSpeaker
(Supplier<Double> yMovement, Supplier<Double> xMovement) void
doVisionUpdates
(boolean doVisionUpdates) edu.wpi.first.wpilibj2.command.Command
Use this to pass the autonomous command to the mainRobot
class.outputValues
(Supplier<Double> distance, Supplier<Double> armAngle) edu.wpi.first.wpilibj2.command.Command
DOES NOT ACTAULLY TURN TO ZERO BE AWAREvoid
setMotorBrake
(boolean isBraked) void
void
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command
turnToSpeaker
(Supplier<Double> yMovement, Supplier<Double> xMovement)
-
Field Details
-
autoChooser
public final edu.wpi.first.wpilibj.smartdashboard.SendableChooser<edu.wpi.first.wpilibj2.command.Command> autoChooser
-
-
Constructor Details
-
RobotContainer
public RobotContainer()The container for the robot. Contains subsystems, OI devices, and commands.
-
-
Method Details
-
outputValues
-
doVisionUpdates
public void doVisionUpdates(boolean doVisionUpdates) -
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
-
setMotorBrake
public void setMotorBrake(boolean isBraked) -
turnToSpeaker
public edu.wpi.first.wpilibj2.command.Command turnToSpeaker() -
turnToSpeaker
-
aimAtSpeaker
-
teleopInit
public void teleopInit() -
pointAwayFromSpeaker
public edu.wpi.first.wpilibj2.command.Command pointAwayFromSpeaker()DOES NOT ACTAULLY TURN TO ZERO BE AWARE -
turnSideways
public edu.wpi.first.wpilibj2.command.Command turnSideways() -
turnAwayFromAmp
public edu.wpi.first.wpilibj2.command.Command turnAwayFromAmp() -
StopShooter
public void StopShooter()
-