X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fauton%2FPassRampart.java;h=426063dcaa2cad2fa4df19f4d05933640e74d1c1;hb=dfcc1b2194b4c82b295440af9b408b6b46f40e03;hp=f381af4f1c8465c4706e1b983c217d13153cc755;hpb=6bb7f8ac8eca89a8e0b308720f7e15178eef43ea;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java index f381af4f..426063dc 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java @@ -1,10 +1,16 @@ package org.usfirst.frc.team3501.robot.commands.auton; -import edu.wpi.first.wpilibj.command.Command; +import org.usfirst.frc.team3501.robot.commands.driving.DriveForTime; + +import edu.wpi.first.wpilibj.command.CommandGroup; /*** * This command will drive the robot through the rampart. * + * dependency on subsystems: drivetrain + * + * dependency on other commands: DriveForTime + * * pre-condition: robot is flush against the ramp of the outerworks in front of * the rampart * @@ -13,30 +19,22 @@ import edu.wpi.first.wpilibj.command.Command; * @author Meryem and Avi * */ -public class PassRampart extends Command { - public PassRampart() { - - } +public class PassRampart extends CommandGroup { - @Override - protected void initialize() { - } + public PassRampart() { - @Override - protected void execute() { - } + final double BEG_TIME = 0; + final double BEG_SPEED = 0; + final double MID_TIME = 0; + final double MID_SPEED = 0; + final double END_TIME = 0; + final double END_SPEED = 0; - @Override - protected boolean isFinished() { - return false; - } + addSequential(new DriveForTime(BEG_TIME, BEG_SPEED)); + addSequential(new DriveForTime(MID_TIME, MID_SPEED)); + addSequential(new DriveForTime(END_TIME, END_SPEED)); - @Override - protected void end() { } - @Override - protected void interrupted() { - } }