Skip to content

Commit

Permalink
fix: Make the BetterIntake build
Browse files Browse the repository at this point in the history
  • Loading branch information
msoucy authored and Liammurray19 committed Feb 22, 2025
1 parent 2307f9d commit 9cde6f3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main/java/frc/robot/subsystems/CoralManip.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,13 @@ public Command betterintake() {
return run(() -> {
getData().leftMotor.setpoint = INTAKE_SPEED;
getData().rightMotor.setpoint = INTAKE_SPEED;
}).until(() -> getData().gamePieceDetected).andThen(() -> {
getMap().leftMotor.getEncoder().reset();
getMap().rightMotor.getEncoder().reset();
safeState();
},
startSafe(() -> {
}).until(() -> getData().gamePieceDetected).andThen(
resetCmd(), safeStateCmd(), startSafe(() -> {
getData().leftMotor.setpoint = ALIGNMENT_SPEED;
getData().rightMotor.setpoint = ALIGNMENT_SPEED;
}).until(() -> {
return getMap().leftMotor.getEncoder().getDistance() < ALIGNMENT_DISTANCE;
return getMap().rightMotor.getEncoder().getDistance() < ALIGNMENT_DISTANCE;
return getMap().leftMotor.getEncoder().getDistance() < ALIGNMENT_DISTANCE
&& getMap().rightMotor.getEncoder().getDistance() < ALIGNMENT_DISTANCE;
}));
}

Expand Down

0 comments on commit 9cde6f3

Please sign in to comment.