From ebae4bdeacd676efdfa399f1a153fdddb0a0a823 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 --- .../robot/commands/auton/PassRockWall.java | 35 ++++++++----------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassRockWall.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassRockWall.java index 7498138e..364133f8 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/auton/PassRockWall.java +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/PassRockWall.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 rock wall. @@ -13,29 +13,24 @@ import edu.wpi.first.wpilibj.command.Command; * @author Meryem and Avi * */ -public class PassRockWall extends Command { - public PassRockWall() { - } - - @Override - protected void initialize() { - } +/** + * + */ +public class PassRockWall extends CommandGroup { - @Override - protected void execute() { - } + 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; - @Override - protected boolean isFinished() { - return false; - } + public PassRockWall() { - @Override - protected void end() { - } + addSequential(new DriveForTime(BEG_TIME, BEG_SPEED)); + addSequential(new DriveForTime(MID_TIME, MID_SPEED)); + addSequential(new DriveForTime(END_TIME, END_SPEED)); - @Override - protected void interrupted() { } } -- 2.30.2