File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,9 @@ public boolean getAsBoolean() {
404
404
operator .rightBumper ()
405
405
.whileTrue (coralRoller .intake ());
406
406
407
+ // Jiggle coral
408
+ operator .start ().whileTrue (coralRoller .jiggle ().repeatedly ());
409
+
407
410
// Force joystick operation of the elevator
408
411
Trigger elevatorTriggerHigh = operator .axisGreaterThan (Axis .kLeftY .value , 0.9 , loop ).debounce (0.1 );
409
412
Trigger elevatorTriggerLow = operator .axisLessThan (Axis .kLeftY .value , -0.9 , loop ).debounce (0.1 );
Original file line number Diff line number Diff line change 11
11
import edu .wpi .first .units .measure .Voltage ;
12
12
import edu .wpi .first .wpilibj .smartdashboard .SmartDashboard ;
13
13
import edu .wpi .first .wpilibj2 .command .Command ;
14
+ import edu .wpi .first .wpilibj2 .command .Commands ;
14
15
import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
15
16
import edu .wpi .first .wpilibj2 .command .button .Trigger ;
16
17
import frc .robot .Constants .MotorConstants .NEO550Constants ;
@@ -97,4 +98,9 @@ public Command outtakeToL4() {
97
98
return this .run (() -> setVoltage (CoralRollerConstants .kOuttakeToL4Voltage ))
98
99
.withName ("Outtake to L4" );
99
100
}
101
+
102
+ public Command jiggle () {
103
+ return Commands .sequence (outtakeToL1 ().withTimeout (0.05 ), intake ().withTimeout (0.3 ))
104
+ .withName ("Jiggle" );
105
+ }
100
106
}
You can’t perform that action at this time.
0 commit comments