Fix code to fit API

This commit is contained in:
Keenan D. Buckley
2020-03-02 17:05:29 -07:00
parent 1517a165e1
commit 5d2b594459
@@ -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)
);
}