From d4ccb8f64c3424278c52bb06946430f8bd12c963 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Tue, 9 Feb 2016 22:01:14 -0800 Subject: [PATCH] implement code for PassRockWall command group --- .../team3501/robot/commands/PassRockWall.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/PassRockWall.java 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)); + + } +} -- 2.30.2