From e71d6d9b8a8a33eb54356cf4489da0a4cfee6e58 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sat, 16 Jan 2016 17:10:43 -0800 Subject: [PATCH] add all DefenseArm commands --- .../robot/commands/LiftPortcullis.java | 36 +++++++++++++++++++ .../robot/commands/LowerChevalDeFrise.java | 36 +++++++++++++++++++ .../robot/commands/LowerDrawBridge.java | 36 +++++++++++++++++++ .../frc/team3501/robot/commands/MoveArm.java | 36 +++++++++++++++++++ .../frc/team3501/robot/commands/Position.java | 36 +++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/MoveArm.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/Position.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java b/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java new file mode 100755 index 00000000..bc93f771 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class LiftPortcullis extends Command { + + public LiftPortcullis() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java b/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java new file mode 100755 index 00000000..77110d5b --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class LowerChevalDeFrise extends Command { + + public LowerChevalDeFrise() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java b/src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java new file mode 100755 index 00000000..e0ee1e21 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class LowerDrawBridge extends Command { + + public LowerDrawBridge() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/MoveArm.java b/src/org/usfirst/frc/team3501/robot/commands/MoveArm.java new file mode 100755 index 00000000..aa6319a1 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/MoveArm.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class MoveArm extends Command { + + public MoveArm(int direction, double speed) { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/Position.java b/src/org/usfirst/frc/team3501/robot/commands/Position.java new file mode 100755 index 00000000..82281257 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/Position.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class Position extends Command { + + public Position(/*type of defense*/) { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} -- 2.30.2