Skip to content

Commit a1c97d6

Browse files
committed
2 parents dbfde7b + 0249292 commit a1c97d6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/java/frc/robot/subsystems/manipulator/grabber/RealGrabber.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class RealGrabber extends Grabber {
2828
private final DigitalInput detectSensor;
2929
private final DigitalInput clearSensor;
3030

31-
private Debouncer algaeDebouncer = new Debouncer(0.5);
31+
private Debouncer algaeDebouncer = new Debouncer(0.3);
3232
private Debouncer coralDebouncer = new Debouncer(0.15);
3333

3434
private boolean hasCoral = false;
@@ -121,10 +121,6 @@ public Command dropAlgae() {
121121
return runSpeed(MANIPULATOR.ALGAE_OUT_SPEED).finallyDo(() -> expectAlgae(false));
122122
}
123123

124-
private void resetDebouncer() {
125-
algaeDebouncer = new Debouncer(0.5, DebounceType.kFalling);
126-
}
127-
128124
@Override
129125
public Command forwards() {
130126
return runSpeed(MANIPULATOR.BASE_SPEED);
@@ -162,7 +158,7 @@ public Command stop() {
162158
}
163159

164160
public boolean isStalled() {
165-
return Math.abs(motor.get()) > 0.0 && Math.abs(motor.getEncoder().getVelocity()) < 0.2;
161+
return Math.abs(motor.get()) > 0.0 && Math.abs(motor.getEncoder().getVelocity()) < 3000;
166162
}
167163

168164
@Override

0 commit comments

Comments
 (0)