Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
add method to run searchForBall in autonomous
Browse files Browse the repository at this point in the history
  • Loading branch information
varun7654 committed Mar 24, 2022
1 parent 745cada commit b724632
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/subsystem/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -898,4 +898,8 @@ public void turnToAngle(double degrees) throws InterruptedException {
Thread.onSpinWait();
}
}

public synchronized void setSearchForBall() {
setDriveState(DriveState.SEARCH_FOR_BALL);
}
}

0 comments on commit b724632

Please sign in to comment.