From 80d66d753858a5e4f5128d1ab254f9e9831c33b1 Mon Sep 17 00:00:00 2001 From: Aarav Shah Date: Fri, 5 Mar 2021 15:40:16 -0700 Subject: [PATCH] tested sequentialcommandgroup with tankdrivevelocity, WORKING!! --- src/main/java/frc4388/robot/RobotContainer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index 05e33b2..bca69d3 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -205,8 +205,6 @@ public class RobotContainer { new JoystickButton(getDriverJoystick(), XboxController.X_BUTTON) .whenPressed(new InstantCommand()); - - /* Driver Buttons */ // sets solenoids into high gear new JoystickButton(getDriverJoystick(), XboxController.RIGHT_BUMPER_BUTTON) @@ -388,7 +386,8 @@ public class RobotContainer { //return m_driveOffLineBackward.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0)); //return m_slalom.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); //return m_barrel.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); - return m_barrelStart.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); + //return m_barrelStart.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); + return new SequentialCommandGroup(new TankDriveVelocity(m_robotDrive, 1000, 1000, 3), new TankDriveVelocity(m_robotDrive, 3000, 3000, 1)); } catch (Exception e) { System.err.println("ERROR");