Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Now the buttons are accurate:
Browse files Browse the repository at this point in the history
up = forward, down = backward, left = left, right = right
  • Loading branch information
Hsaunders603 committed Oct 26, 2023
1 parent f5a925e commit 67946ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ public void configureButtonBindings() {
driveController.x().whileTrue(drive.rotateToAngle(Rotation2d.fromDegrees(180), () -> 0, () -> 0));
driveController.a().whileTrue(drive.rotateToAngle(Rotation2d.fromDegrees(0), () -> 0, () -> 0));

driveController.povUp().onTrue(drive.moveForDirectional(0, 1, 5));
driveController.povLeft().onTrue(drive.moveForDirectional(1, 0, 5));
driveController.povRight().onTrue(drive.moveForDirectional(0, -1, 5));
driveController.povDown().onTrue(drive.moveForDirectional(-1, 0, 5));
driveController.povDown().onTrue(drive.moveForDirectional(0, 1, 5));
driveController.povRight().onTrue(drive.moveForDirectional(1, 0, 5));
driveController.povUp().onTrue(drive.moveForDirectional(0, -1, 5));
driveController.povLeft().onTrue(drive.moveForDirectional(-1, 0, 5));
/*
* public CommandBase testDriveDriver() {
* return sequence(
Expand Down

0 comments on commit 67946ca

Please sign in to comment.