package org.usfirst.frc.team3501.robot;
+import org.usfirst.frc.team3501.robot.commands.auton.Auton;
import org.usfirst.frc.team3501.robot.commands.driving.SetLowGear;
-import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive;
import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
import org.usfirst.frc.team3501.robot.subsystems.IntakeArm;
import org.usfirst.frc.team3501.robot.subsystems.Shooter;
// Scheduler.getInstance().add(new WaitCommand(1));
// Scheduler.getInstance().add(new
// MoveIntakeArm(Constants.IntakeArm.EXTEND));
- Scheduler.getInstance().add(new TimeDrive(8, -.8));
+ Scheduler.getInstance().add(new Auton());
}
@Override
--- /dev/null
+package org.usfirst.frc.team3501.robot.commands.auton;
+
+import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class Auton extends CommandGroup {
+
+ public Auton() {
+ addSequential(new TimeDrive(.5, -.4));
+ addSequential(new TimeDrive(.5, -.6));
+ addSequential(new TimeDrive(.5, -.8));
+ addSequential(new TimeDrive(7, -1));
+ }
+}