src/Robot.cpp
void Robot::RobotInit() {
	RobotMap::init();

	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
	driveBase = new DriveBase();
	elevator = new Elevator();
	intakes = new Intakes();

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
	// This MUST be here. If the OI creates Commands (which it very likely
	// will), constructing it during the construction of CommandBase (from
	// which commands extend), subsystems are not guaranteed to be
	// yet. Thus, their requires() statements may grab null pointers. Bad
	// news. Don't move it.
	oi = new OI();
	lw = LiveWindow::GetInstance();

	// instantiate the command used for the autonomous period
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS
	autonomousCommand = new AutonomousCommand();

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS
	autoChooser = new SendableChooser();
	autoChooser->AddDefault("Do Nuffin", new AutonomousCommand());
	autoChooser->AddObject("Tote + Can", new ToteCan());
	autoChooser->AddObject("3 Cans", new ThreeCans());

	driveBase->GetEncoder();
  }
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INITIALIZATION
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INITIALIZATION
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = INITIALIZATION
void Robot::RobotInit() {
	RobotMap::init();
	driveBase = new DriveBase();
	elevator = new Elevator();
	intakes = new Intakes();
	oi = new OI();
	lw = LiveWindow::GetInstance();
	autonomousCommand = new AutonomousCommand();
	autoChooser = new SendableChooser();
	autoChooser->AddDefault("Do Nuffin", new AutonomousCommand());
	autoChooser->AddObject("Tote + Can", new ToteCan());
	autoChooser->AddObject("3 Cans", new ThreeCans());
	driveBase->GetEncoder();
  }
void Robot :: RobotInit ( ) { RobotMap :: init ( ) ; driveBase = new DriveBase ( ) ; elevator = new Elevator ( ) ; intakes = new Intakes ( ) ; oi = new OI ( ) ; lw = LiveWindow :: GetInstance ( ) ; autonomousCommand = new AutonomousCommand ( ) ; autoChooser = new SendableChooser ( ) ; autoChooser -> AddDefault ( " " , new AutonomousCommand ( ) ) ; autoChooser -> AddObject ( " " , new ToteCan ( ) ) ; autoChooser -> AddObject ( " " , new ThreeCans ( ) ) ; driveBase -> GetEncoder ( ) ; }
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INITIALIZATION
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = INITIALIZATION
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS // This MUST be here. If the OI creates Commands (which it very likely // will), constructing it during the construction of CommandBase (from // which commands extend), subsystems are not guaranteed to be // yet. Thus, their requires() statements may grab null pointers. Bad // news. Don't move it. // instantiate the command used for the autonomous period // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS