Skip to content

Commit

Permalink
cancel drive commands rebind
Browse files Browse the repository at this point in the history
rebind haltdrivecommand from leftstick to y button. replaced an auto (not used)
  • Loading branch information
JayK445 committed Oct 13, 2023
1 parent f078df1 commit 2bc96dd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private void configureButtonBindings() {

will.leftBumper().onTrue(new DefenseModeCommand(drivebaseSubsystem));

will.leftStick().onTrue(new HaltDriveCommandsCommand(drivebaseSubsystem));
will.y().onTrue(new HaltDriveCommandsCommand(drivebaseSubsystem));
jason.leftStick().onTrue(new InstantCommand(() -> {}, armSubsystem));

DoubleSupplier rotation =
Expand Down Expand Up @@ -263,17 +263,17 @@ private void configureButtonBindings() {
Optional.of(rgbSubsystem),
Optional.of(will.getHID())));

will.y()
.onTrue(
new DriveToPlaceCommand(
drivebaseSubsystem,
manueverGenerator,
(new AlliancePose2d(15.3639 - 1.5, 7.3965, Rotation2d.fromDegrees(0)))::get,
translationXSupplier,
translationYSupplier,
will.rightBumper(),
Optional.of(rgbSubsystem),
Optional.of(will.getHID())));
// will.y()
// .onTrue(
// new DriveToPlaceCommand(
// drivebaseSubsystem,
// manueverGenerator,
// (new AlliancePose2d(15.3639 - 1.5, 7.3965, Rotation2d.fromDegrees(0)))::get,
// translationXSupplier,
// translationYSupplier,
// will.rightBumper(),
// Optional.of(rgbSubsystem),
// Optional.of(will.getHID())));

will.x()
.onTrue(
Expand Down

0 comments on commit 2bc96dd

Please sign in to comment.