<commit_before>#include "1BallAuton.h"

#include "RobotMap.h"
#include "Commands/ReloadCatapult.h"
#include "AutonControlIntakeVertical.h"
#include "AutonDriveToPoint.h"
#include "Commands/ControlCatapultFire.h"
#include "AutonTurn.h"
#include "Commands/CameraAim.h"
#include "OI.h"

OneBallAuton::OneBallAuton()
{
	Catapult_ReadyShotOne = new ReloadCatapult(BTN_PRESET_1);
	Catapult_ShootOne = new ControlCatapultFire(true);
	Intake_AdjustForDefense = new AutonControlIntakeVertical();
	Intake_RaiseIntake = new AutonControlIntakeVertical();
	Intake_ExtendIntake = new AutonControlIntakeHorizontal();
	Drive_DriveToDefense = new AutonDriveToPoint();
	Turn_TurnToSeeTarget = new AutonTurn();
	Vision_AimAtTarget = new CameraAim(CameraAim::kLeft, true);
	Delay_FinishAuton = new AutonDelay();

	AddParallel(Intake_AdjustForDefense, 1);
	if(*(int *)OI::GetInstance()->defenseChooser->GetSelected() == 2) AddSequential(Catapult_ReadyShotOne, 2);
	else AddParallel(Catapult_ReadyShotOne, 2);
	AddSequential(Drive_DriveToDefense, 9);
	AddParallel(Intake_RaiseIntake, 1);
	AddParallel(Intake_ExtendIntake, 1);
	AddSequential(Turn_TurnToSeeTarget, 2);
	AddSequential(Vision_AimAtTarget, 5);
	AddSequential(Catapult_ShootOne, 1);
	AddSequential(Delay_FinishAuton);
}

OneBallAuton::~OneBallAuton()
{
	delete Catapult_ReadyShotOne;
	delete Catapult_ShootOne;
	delete Intake_AdjustForDefense;
	delete Intake_RaiseIntake;
	delete Intake_ExtendIntake;
	delete Drive_DriveToDefense;
	delete Turn_TurnToSeeTarget;
	delete Vision_AimAtTarget;<commit_msg>Removed if statement in constructor<commit_after>#include "1BallAuton.h"

#include "RobotMap.h"
#include "Commands/ReloadCatapult.h"
#include "AutonControlIntakeVertical.h"
#include "AutonDriveToPoint.h"
#include "Commands/ControlCatapultFire.h"
#include "AutonTurn.h"
#include "Commands/CameraAim.h"
#include "OI.h"

OneBallAuton::OneBallAuton()
{
	Catapult_ReadyShotOne = new ReloadCatapult(BTN_PRESET_1);
	Catapult_ShootOne = new ControlCatapultFire(true);
	Intake_AdjustForDefense = new AutonControlIntakeVertical();
	Intake_RaiseIntake = new AutonControlIntakeVertical();
	Intake_ExtendIntake = new AutonControlIntakeHorizontal();
	Drive_DriveToDefense = new AutonDriveToPoint();
	Turn_TurnToSeeTarget = new AutonTurn();
	Vision_AimAtTarget = new CameraAim(CameraAim::kLeft, true);
	Delay_FinishAuton = new AutonDelay();

	AddParallel(Intake_AdjustForDefense, 1);
	AddParallel(Catapult_ReadyShotOne, 2);
	AddSequential(Drive_DriveToDefense, 9);
	AddParallel(Intake_RaiseIntake, 1);
	AddParallel(Intake_ExtendIntake, 1);
	AddSequential(Turn_TurnToSeeTarget, 2);
	AddSequential(Vision_AimAtTarget, 5);
	AddSequential(Catapult_ShootOne, 1);
	AddSequential(Delay_FinishAuton);
}

OneBallAuton::~OneBallAuton()
{
	delete Catapult_ReadyShotOne;
	delete Catapult_ShootOne;
	delete Intake_AdjustForDefense;
	delete Intake_RaiseIntake;
	delete Intake_ExtendIntake;
	delete Drive_DriveToDefense;
	delete Turn_TurnToSeeTarget;
	delete Vision_AimAtTarget;
{'fraction_non_alphanumeric': 0.09842651489789087, 'fraction_numerical': 0.007365249414127887, 'mean_word_length': 9.558303886925795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4801762', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1119, 'n_words': 171}