From af236b4e976d5b09f7e32854dcd028273204dc29 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sat, 30 Jan 2016 15:21:17 -0800 Subject: [PATCH] change name of LowerChevalDeFrise to PassChevalDeFrise and add pre and post condition comments --- .../robot/commands/DefaultAutonStrategy.java | 2 +- .../robot/commands/LowerChevalDeFrise.java | 30 ------------- .../robot/commands/PassChevalDeFrise.java | 43 +++++++++++++++++++ 3 files changed, 44 insertions(+), 31 deletions(-) delete mode 100755 src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/PassChevalDeFrise.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java b/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java index 97070637..594e42fa 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java +++ b/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java @@ -42,7 +42,7 @@ public class DefaultAutonStrategy extends CommandGroup { case CHEVAL_DE_FRISE: - addSequential(new LowerChevalDeFrise()); + addSequential(new PassChevalDeFrise()); case DRAWBRIDGE: diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java b/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java deleted file mode 100755 index 790700bd..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.usfirst.frc.team3501.robot.commands; - -import edu.wpi.first.wpilibj.command.Command; - -public class LowerChevalDeFrise extends Command { - - public LowerChevalDeFrise() { - } - - @Override - protected void initialize() { - } - - @Override - protected void execute() { - } - - @Override - protected boolean isFinished() { - return false; - } - - @Override - protected void end() { - } - - @Override - protected void interrupted() { - } -} diff --git a/src/org/usfirst/frc/team3501/robot/commands/PassChevalDeFrise.java b/src/org/usfirst/frc/team3501/robot/commands/PassChevalDeFrise.java new file mode 100755 index 00000000..2f80dc23 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/PassChevalDeFrise.java @@ -0,0 +1,43 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/*** + * This command will move the intake arm downwards using a motor to lower the + * cheval de frise and drive over it. + * + * pre-condition: robot is flush against the ramp of the outerworks in front of + * the cheval de frise + * + * post-condition: the robot has passed the cheval de frise and is in the next + * zone + * + * @author Meryem and Avi + * + */ +public class PassChevalDeFrise extends Command { + + public PassChevalDeFrise() { + } + + @Override + protected void initialize() { + } + + @Override + protected void execute() { + } + + @Override + protected boolean isFinished() { + return false; + } + + @Override + protected void end() { + } + + @Override + protected void interrupted() { + } +} -- 2.30.2