From: Meryem Esa Date: Wed, 10 Feb 2016 06:01:14 +0000 (-0800) Subject: implement code for PassRockWall command group X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=d4ccb8f64c3424278c52bb06946430f8bd12c963 implement code for PassRockWall command group --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/PassRockWall.java b/src/org/usfirst/frc/team3501/robot/commands/PassRockWall.java new file mode 100755 index 00000000..4250e534 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/PassRockWall.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.CommandGroup; + +/*** + * This command will drive the robot through the rock wall. + * + * pre-condition: robot is flush against the ramp of the outerworks in front of + * the rock wall + * + * post-condition: the robot has passed the rock wall and is in the next zone + * + * @author Meryem and Avi + * + */ + +/** + * + */ +public class PassRockWall extends CommandGroup { + + private final double BEG_TIME = 0; + private final double MID_TIME = 0; + private final double END_TIME = 0; + private final double BEG_SPEED = 0; + private final double MID_SPEED = 0; + private final double END_SPEED = 0; + + public PassRockWall() { + + addSequential(new DriveForTime(BEG_TIME, BEG_SPEED)); + addSequential(new DriveForTime(MID_TIME, MID_SPEED)); + addSequential(new DriveForTime(END_TIME, END_SPEED)); + + } +}