X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fauton%2FPassLowBar.java;h=9d9184d8d337de60362daa38b7059c8829ecb447;hb=b332ad0d4dc703f34de13335b98864ed690eaa0e;hp=8d42325e8e77901618e189b4cfe23ed28445d06d;hpb=6bb7f8ac8eca89a8e0b308720f7e15178eef43ea;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java index 8d42325e..9d9184d8 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java @@ -1,6 +1,6 @@ package org.usfirst.frc.team3501.robot.commands.auton; -import edu.wpi.first.wpilibj.command.Command; +import edu.wpi.first.wpilibj.command.CommandGroup; /*** * This command will drive the robot through the low bar. @@ -13,30 +13,19 @@ import edu.wpi.first.wpilibj.command.Command; * @author Meryem and Avi * */ -public class PassLowBar extends Command { - public PassLowBar() { +public class PassLowBar extends CommandGroup { - } + private final double DISTANCE = 4.0; + private final double DEFAULT_SPEED = 0.5; - @Override - protected void initialize() { - } - - @Override - protected void execute() { - } - - @Override - protected boolean isFinished() { - return false; - } - - @Override - protected void end() { + public PassLowBar() { + // TODO: need to add sequential for retracting the arms and shooting hood + // once those commands are made + addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED)); } - @Override - protected void interrupted() { + public PassLowBar(double speed) { + addSequential(new DriveForDistance(DISTANCE, speed)); } }