File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/main/java/frc/robot/subsystems/manipulator/grabber Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments