From 246a613bdf00cb21df311118d6179c9ef6ba6b12 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Sun, 14 Feb 2016 17:23:42 -0800 Subject: [PATCH] create compactrobot command --- .../robot/commands/auton/CompactRobot.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/org/usfirst/frc/team3501/robot/commands/auton/CompactRobot.java 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() { + } +} -- 2.30.2