From 5cf99855b6a7b49c01cc826bbc9d2b2af4a1d473 Mon Sep 17 00:00:00 2001 From: Shaina Chen Date: Tue, 16 Feb 2016 11:13:41 -0800 Subject: [PATCH] fill in LiftRobot command group --- .../robot/commands/auton/LiftRobot.java | 34 ++++++------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/LiftRobot.java b/src/org/usfirst/frc/team3501/robot/commands/auton/LiftRobot.java index e5953b19..89d52533 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/auton/LiftRobot.java +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/LiftRobot.java @@ -1,30 +1,18 @@ package org.usfirst.frc.team3501.robot.commands.auton; -import edu.wpi.first.wpilibj.command.Command; +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; -public class LiftRobot extends Command { +import edu.wpi.first.wpilibj.command.CommandGroup; - public LiftRobot() { - } +public class LiftRobot extends CommandGroup { - @Override - protected void initialize() { - } + public LiftRobot() { + requires(Robot.scaler); - @Override - protected void execute() { - } - - @Override - protected boolean isFinished() { - return false; - } - - @Override - protected void end() { - } - - @Override - protected void interrupted() { - } + addSequential(new RunWinchContinuous(Constants.Scaler.WINCH_IN_SPEED, Constants.Scaler.WINCH_TIMEOUT)); + addSequential(new StopWinch()); + } } -- 2.30.2