Package frc.robot.autonomous
Class Chooser
- java.lang.Object
-
- frc.robot.autonomous.Chooser
-
public class Chooser extends java.lang.Object
Class for handling autonomous command generation
-
-
Constructor Summary
Constructors Constructor Description Chooser()
Here, we set up each chooser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.wpi.first.wpilibj2.command.CommandBase
generateAutonomousCommand()
Generate an Autonomous command to be run based on chooser inputsedu.wpi.first.wpilibj.geometry.Pose2d
getRobotAutoStartPosition()
Get a Pose2d representing the robot's exact starting location for the selected autonomous modevoid
publishOptions()
Publish all chooser options to Shuffleboard
-
-
-
Method Detail
-
publishOptions
public void publishOptions()
Publish all chooser options to Shuffleboard
-
generateAutonomousCommand
public edu.wpi.first.wpilibj2.command.CommandBase generateAutonomousCommand()
Generate an Autonomous command to be run based on chooser inputs- Returns:
- Generated command
-
getRobotAutoStartPosition
public edu.wpi.first.wpilibj.geometry.Pose2d getRobotAutoStartPosition()
Get a Pose2d representing the robot's exact starting location for the selected autonomous mode- Returns:
- Robot position
-
-