From a2c590e7fe952ff295c64a5130316dfbf972ad0c Mon Sep 17 00:00:00 2001 From: Aarav Shah Date: Mon, 1 Mar 2021 17:42:23 -0700 Subject: [PATCH] fixed weird array dimension error Co-Authored-By: Nirvan Bhalala <78400306+nbhalala27@users.noreply.github.com> --- src/main/java/frc4388/robot/RobotContainer.java | 4 ++-- .../java/frc4388/robot/commands/auto/SequentialTesting.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index 1c49c23..4995c77 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -384,9 +384,9 @@ public class RobotContainer { //return m_fiveBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0)); //return m_tenBallAutoMiddle.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_barrel.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); //return m_barrelMany.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); - return m_sequentialTesting.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); + //return m_sequentialTesting.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0)); } catch (Exception e) { System.err.println("ERROR"); diff --git a/src/main/java/frc4388/robot/commands/auto/SequentialTesting.java b/src/main/java/frc4388/robot/commands/auto/SequentialTesting.java index f1771a2..dded12a 100644 --- a/src/main/java/frc4388/robot/commands/auto/SequentialTesting.java +++ b/src/main/java/frc4388/robot/commands/auto/SequentialTesting.java @@ -23,8 +23,8 @@ public class SequentialTesting extends SequentialCommandGroup { // super(new FooCommand(), new BarCommand()); addCommands( paths[0], - new Wait(drive, 1, 1), - paths[1] + new Wait(drive, 1, 1) + //paths[1] ); } }