Class 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 inputs
      edu.wpi.first.wpilibj.geometry.Pose2d getRobotAutoStartPosition()
      Get a Pose2d representing the robot's exact starting location for the selected autonomous mode
      void publishOptions()
      Publish all chooser options to Shuffleboard
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Chooser

        public Chooser()
        Here, we set up each chooser. This should be changed to reflect the ideal "defaults"
    • 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