From e21ef4e96228e31a0a9e11340d50fa59c71e0aca Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Tue, 9 Feb 2016 21:59:45 -0800 Subject: [PATCH] implement code for PassMoat command group --- .../frc/team3501/robot/commands/PassMoat.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/PassMoat.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/PassMoat.java b/src/org/usfirst/frc/team3501/robot/commands/PassMoat.java new file mode 100755 index 00000000..99965cef --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/PassMoat.java @@ -0,0 +1,32 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.CommandGroup; + +/*** + * This command will drive the robot through the moat. + * + * pre-condition: robot is flush against the ramp of the outerworks in front of + * the moat + * + * post-condition: the robot has passed the moat and is in the next zone + * + * @author Meryem and Avi + * + */ + +public class PassMoat 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 PassMoat() { + addSequential(new DriveForTime(BEG_TIME, BEG_SPEED)); + addSequential(new DriveForTime(MID_TIME, MID_SPEED)); + addSequential(new DriveForTime(END_TIME, END_SPEED)); + + } +} -- 2.30.2