src/main/java/frc/robot/Robot.java
/**
   * This autonomous (along with the chooser code above) shows how to select between different
   * autonomous modes using the dashboard. The sendable chooser code works with the Java
   * SmartDashboard. If you prefer the LabVIEW Dashboard, remove all of the chooser code and
   * uncomment the getString code to get the auto name from the text box below the Gyro
   *
   * <p>You can add additional auto modes by adding additional commands to the chooser code above
   * (like the commented example) or additional comparisons to the switch structure below with
   * additional strings & commands.
   */
This autonomous (along with the chooser code above) shows how to select between different
autonomous modes using the dashboard. The sendable chooser code works with the Java
SmartDashboard. If you prefer the LabVIEW Dashboard, remove all of the chooser code and
uncomment the getString code to get the auto name from the text box below the Gyro

You can add additional auto modes by adding additional commands to the chooser code above
(like the commented example) or additional comparisons to the switch structure below with
additional strings & commands.
This autonomous ( along with the chooser code above ) shows how to select between different autonomous modes using the dashboard . The sendable chooser code works with the Java SmartDashboard . If you prefer the LabVIEW Dashboard remove all of the chooser code and uncomment the getString code to get the auto name from the text box below the Gyro You can add additional auto modes by adding additional commands to the chooser code above ( like the commented example ) or additional comparisons to the switch structure below with additional strings & commands .
@Override
  public void autonomousInit() {
    startTime = Timer.getFPGATimestamp();
    /*
     * String autoSelected = SmartDashboard.getString("Auto Selector",
     * "Default"); switch(autoSelected) { case "My Auto": autonomousCommand
     * = new MyAutoCommand(); break; case "Default Auto": default:
     * autonomousCommand = new ExampleCommand(); break; }
     */
    }
@ Override public void autonomousInit ( ) { startTime = Timer . getFPGATimestamp ( ) ; /*
     * String autoSelected = SmartDashboard.getString("Auto Selector",
     * "Default"); switch(autoSelected) { case "My Auto": autonomousCommand
     * = new MyAutoCommand(); break; case "Default Auto": default:
     * autonomousCommand = new ExampleCommand(); break; }
     */ }
This autonomous (along with the chooser code above) shows how to select between different
 autonomous modes using the dashboard.
This autonomous ( along with the chooser code above ) shows how to select between different autonomous modes using the dashboard .
// schedule the autonomous command (example)