From: Cindy Zhang Date: Mon, 15 Feb 2016 01:23:42 +0000 (-0800) Subject: create compactrobot command X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=246a613bdf00cb21df311118d6179c9ef6ba6b12 create compactrobot command --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/CompactRobot.java b/src/org/usfirst/frc/team3501/robot/commands/auton/CompactRobot.java new file mode 100644 index 00000000..bde8aba2 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/CompactRobot.java @@ -0,0 +1,44 @@ +package org.usfirst.frc.team3501.robot.commands.auton; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class CompactRobot extends Command { + + public CompactRobot() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + @Override + protected void initialize() { + // move hood down + // move intakeArm out + // move defenseArm down + } + + // Called repeatedly when this Command is scheduled to run + @Override + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + @Override + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + @Override + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + @Override + protected void interrupted() { + } +}