From 2bc96dd9293176ff47f376399d105af5cb7e66a5 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 12 Oct 2023 18:59:18 -0700 Subject: [PATCH] cancel drive commands rebind rebind haltdrivecommand from leftstick to y button. replaced an auto (not used) --- src/main/java/frc/robot/RobotContainer.java | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index c23be1d..95f3062 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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 = @@ -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(