Experimental/Matts Toy 2019-Alpha/SallyRide/src/main/cpp/Robot.cpp
/**
 * 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 if-else 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 if-else 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 if - else structure below with additional strings & commands .
void Robot::AutonomousInit() {
  m_autonomousCommand = m_chooser.GetSelected();
  if (m_autonomousCommand != nullptr) {
    m_autonomousCommand->Start();
  }
}
void Robot :: AutonomousInit ( ) { m_autonomousCommand = m_chooser . GetSelected ( ) ; if ( m_autonomousCommand != nullptr ) { m_autonomousCommand -> Start ( ) ; } }
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 .
// std::string autoSelected = frc::SmartDashboard::GetString( //     "Auto Selector", "Default"); // if (autoSelected == "My Auto") { //   m_autonomousCommand = &m_myAuto; // } else { //   m_autonomousCommand = &m_defaultAuto; // }