Example #1
0
	void RobotInit()
	{
		CommandBase::init();
		chooser = std::make_unique<SendableChooser>();
		chooser->AddDefault("Do nothing", 0);
		chooser->AddObject("Go straight and shoot", new Autonomous());
		SmartDashboard::PutData("Autonomous Modes", chooser.get());
	}