Skip to content

Commit

Permalink
Merge pull request #186 from frc937/heading-snap-gross
Browse files Browse the repository at this point in the history
Heading snap gross
  • Loading branch information
Jack-Haefele authored Apr 22, 2024
2 parents a695784 + 791ff8b commit 8587168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Controllers.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static void configureOperatorlessKeybinds() {
pilotController.b().whileTrue(RobotContainer.fireNote);
pilotController.x().whileTrue(RobotContainer.climbUp);
pilotController.y().whileTrue(RobotContainer.climbDown);
pilotController.rightBumper().whileTrue(RobotContainer.driveFieldOrientedHeadingSnapping);
pilotController.rightBumper().whileTrue(RobotContainer.driveFieldOrientedSprint);

keymapEntry.setString("Operatorless");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public SetDrivePerspectiveFieldOrientedHeadingSnapping() {
@Override
public void initialize() {
drive.setDefaultCommand(RobotContainer.driveFieldOriented);
Controllers.pilotController.leftBumper().whileTrue(RobotContainer.driveFieldOrientedSprint);
Controllers.pilotController
.leftBumper()
.whileTrue(RobotContainer.driveFieldOrientedHeadingSnapping);
}

// Called every time the scheduler runs while the command is scheduled.
Expand Down

0 comments on commit 8587168

Please sign in to comment.