Skip to content

Commit

Permalink
Fix addRequirements
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Mar 26, 2024
1 parent 2f42ae7 commit 5c07d6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public SwerveDriveToNote() {

return x;
});

addRequirements(swerve);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public SwerveDriveToShoot(Number targetDistance, double debounce) {
distanceTolerance = 0.033;
angleTolerance = Alignment.ANGLE_TOLERANCE.get();
velocityTolerance = 0.1;

addRequirements(swerve);
}

private double getTargetDistance() {
Expand Down

0 comments on commit 5c07d6e

Please sign in to comment.