src/main/cpp/Robot.cpp
void Robot::AutonomousInit()
{
  m_autonomousCommand = m_container.GetAutonomousCommand();

  if (m_autonomousCommand != nullptr)
  {
    m_autonomousCommand->Schedule();
  }
}
/**
 * This autonomous runs the autonomous command selected by your {@link
 * RobotContainer} class.
 */
This autonomous runs the autonomous command selected by your {@link
RobotContainer} class.
This autonomous runs the autonomous command selected by your { @link RobotContainer } class .
void Robot::AutonomousInit()
{
  m_autonomousCommand = m_container.GetAutonomousCommand();
  if (m_autonomousCommand != nullptr)
  {
    m_autonomousCommand->Schedule();
  }
}
void Robot :: AutonomousInit ( ) { m_autonomousCommand = m_container . GetAutonomousCommand ( ) ; if ( m_autonomousCommand != nullptr ) { m_autonomousCommand -> Schedule ( ) ; } }
This autonomous runs the autonomous command selected by your {@link
 RobotContainer} class.
This autonomous runs the autonomous command selected by your { @link RobotContainer } class .