--- /dev/null
+package org.usfirst.frc.team3501.robot.commands.intakearm;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.Timer;
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class TimeRunIntake extends Command {
+ Timer timer;
+ private double time;
+
+ public TimeRunIntake(double time) {
+ timer = new Timer();
+ this.time = time;
+ }
+
+ @Override
+ protected void initialize() {
+ timer.start();
+ Robot.intakeArm.intakeBall();
+ }
+
+ @Override
+ protected void execute() {
+ }
+
+ @Override
+ protected boolean isFinished() {
+ return timer.get() >= time;
+ }
+
+ @Override
+ protected void end() {
+ }
+
+ @Override
+ protected void interrupted() {
+ end();
+ }
+}