Skip to content

Commit

Permalink
Added controller bindings for moving goPro Servo
Browse files Browse the repository at this point in the history
  • Loading branch information
De-Hydrated committed Feb 17, 2025
1 parent 2c37d5a commit 524576f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,18 @@ private void configureButtonBindings() {
() -> pivot.setVoltage(operatorController.getLeftTriggerAxis() * -2),
() -> pivot.setVoltage(0),
pivot));

driverController
.y()
.onTrue(
Commands.runOnce(
() -> goProServo.setServoPosition(180)));

driverController
.x()
.onTrue(
Commands.runOnce(
() -> goProServo.setServoPosition(0)));
}

/**
Expand Down

0 comments on commit 524576f

Please sign in to comment.