Skip to content

Commit b87e886

Browse files
committed
changed to && and 1 -> 1.323
1 parent 369f26b commit b87e886

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/frc/robot/commands/AlignToNoteAuto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ public void initialize() {
7878
pivot.setPivotGoal(Constants.PivotConstants.INTAKE_SETPOINT_DEG);
7979
targetNoteLocation = noteLocations.get(drive.getTargetNote());
8080
useGeneratedPathCommand =
81-
drive.getCachedNoteLocation().getDistance(targetNoteLocation) < 1
82-
|| drive.getCachedNoteLocation() != null;
81+
drive.getCachedNoteLocation().getDistance(targetNoteLocation) < 1.323
82+
&& drive.getCachedNoteLocation() != null;
8383
// useGeneratedPathCommand = false;
8484
generatedPathCommand = AutoBuilder.followPath(drive.generatePathToNote());
8585
if (useGeneratedPathCommand) {

0 commit comments

Comments
 (0)