From 5d2b594459b8630e9d25b77a54554952d02157a0 Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Mon, 2 Mar 2020 17:05:29 -0700 Subject: [PATCH] Fix code to fit API --- src/main/java/frc4388/robot/RobotContainer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index e95431d..dfe2cae 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -232,10 +232,10 @@ public class RobotContainer { //return new AutoPath2FromRight(m_robotDrive, m_robotPneumatics); if (Constants.SELECTED_AUTO == 1) { - return new SequentialCommandGroup(new Wait(5, m_robotDrive), - new TurnDegrees(45, m_robotDrive), - new InstantCommand(() -> m_robotDrive.setShiftState(false), m_robotDrive), - new TurnDegrees(315, m_robotDrive) + return new SequentialCommandGroup(new Wait(m_robotDrive, 5, 0), + new TurnDegrees(m_robotDrive, 45), + new InstantCommand(() -> m_robotPneumatics.setShiftState(false), m_robotDrive), + new TurnDegrees(m_robotDrive, 315) ); }