add javadoc style comment for command group
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / LiftRobot.java
index e5953b194de89eb887ffc899c433a4222ed3b291..dcf2095293c978f11363496871020834c02e537e 100755 (executable)
@@ -1,30 +1,25 @@
 package org.usfirst.frc.team3501.robot.commands.auton;
 
-import edu.wpi.first.wpilibj.command.Command;
-
-public class LiftRobot extends Command {
-
-       public LiftRobot() {
-       }
-
-       @Override
-       protected void initialize() {
-       }
-
-       @Override
-       protected void execute() {
-       }
-
-       @Override
-       protected boolean isFinished() {
-               return false;
-       }
-
-       @Override
-       protected void end() {
-       }
-
-       @Override
-       protected void interrupted() {
-       }
+import org.usfirst.frc.team3501.robot.Constants;
+import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.commands.scaler.RunWinchContinuous;
+import org.usfirst.frc.team3501.robot.commands.scaler.StopWinch;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/***
+ * This command group runs the winch to lift robot.
+ * Requires Scaler
+ * 
+ * @author shaina
+ *
+ */
+public class LiftRobot extends CommandGroup {
+
+  public LiftRobot() {
+    requires(Robot.scaler);
+
+    addSequential(new RunWinchContinuous(Constants.Scaler.WINCH_IN_SPEED, Constants.Scaler.WINCH_TIMEOUT));
+    addSequential(new StopWinch());
+  }
 }