Skip to content

Commit a7c7833

Browse files
committed
added pivotHold
1 parent 22a1019 commit a7c7833

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/main/java/frc/robot/RobotContainer.java

+1
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ private void configureButtonBindings() {
315315
PIVOT_TO_SPEAKER.whileTrue(pivot.PIDCommandForever(PivotArmConstants.PIVOT_SUBWOOFER_ANGLE));
316316
PIVOT_PODIUM.whileTrue(pivot.PIDCommandForever(PivotArmConstants.PIVOT_PODIUM_ANGLE));
317317
PIVOT_ANYWHERE.whileTrue(pivot.PIDCommandForever(this::getAngle));
318+
PIVOT_HOLD.whileTrue(pivot.PIDHoldCommand());
318319

319320
// Intake Commands
320321
INTAKE_IN.whileTrue(indexer.manualCommand(IndexerConstants.INDEXER_IN_VOLTAGE));

src/main/java/frc/robot/util/drive/DriveControls.java

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class DriveControls {
4545
public static Trigger PIVOT_TO_SPEAKER;
4646
public static Trigger PIVOT_PODIUM;
4747
public static Trigger PIVOT_ANYWHERE;
48+
public static Trigger PIVOT_HOLD;
4849

4950
// Intake Controls
5051
public static Trigger INTAKE_IN;
@@ -123,6 +124,7 @@ public static void configureControls() {
123124
PIVOT_TO_SPEAKER = operator.getX();
124125
PIVOT_PODIUM = EMPTY_TRIGGER;
125126
PIVOT_ANYWHERE = operator.getY(); // uses vision
127+
PIVOT_HOLD = operator.rightTrigger();
126128

127129
// intaking things
128130
INTAKE_ROTATE = () -> operator.getLeftYD();

0 commit comments

Comments
 (0)