Skip to content

Commit

Permalink
Working, may add on later
Browse files Browse the repository at this point in the history
  • Loading branch information
alexDickhans committed Dec 11, 2021
1 parent 84f7b2e commit 9861eda
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ int rightAwpRight() {
while (!purePursuit.isDone(0.5)) {
pros::Task::delay(50);
}

// Collect front goal
frontGrabberButton.setButtonStatus(ButtonStatus::POSITIVE);
pros::Task::delay(200);
Expand All @@ -156,6 +156,17 @@ int rightAwpRight() {
while (!purePursuit.isDone(0.5)) {
pros::Task::delay(50);
}

return 0;
}

int leftAwpLeft() {
// Collect front goal
frontGrabberButton.setButtonStatus(ButtonStatus::POSITIVE);
pros::Task::delay(1000);
frontGrabberButton.setButtonStatus(ButtonStatus::NEUTRAL);

return 0;
}

/**
Expand All @@ -180,7 +191,7 @@ int testAuton() {
int postAuton() {
purePursuit.setFollowing(false);
purePursuit.setEnabled(false);
frontGrabberButton.setAutonomous(false);
frontGrabberButton.setAutonomous(false);
backGrabberButton.setAutonomous(false);
leftLiftButton.setAutonomous(false);
rightLiftButton.setAutonomous(false);
Expand Down Expand Up @@ -454,7 +465,7 @@ void autonomous() {
// autonRoutines.hpp and the implementation is autonRoutines.cp
// autonomousSelector.run();
preAutonRun();
rightStealRight();
leftAwpLeft();
postAuton();
}

Expand Down

0 comments on commit 9861eda

Please sign in to comment.