From: Cindy Zhang Date: Mon, 15 Feb 2016 00:54:49 +0000 (-0800) Subject: create commandGroup passportcullis (that will use both liftPortcullis and drive forwa... X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=8a3090b5e1120376a232b98a36d5f3de929d6697 create commandGroup passportcullis (that will use both liftPortcullis and drive forward) and add to OI.java --- diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index b136a3ca..cc217235 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -2,6 +2,7 @@ package org.usfirst.frc.team3501.robot; import org.usfirst.frc.team3501.robot.commands.auton.PassChevalDeFrise; import org.usfirst.frc.team3501.robot.commands.auton.PassDrawBridge; +import org.usfirst.frc.team3501.robot.commands.auton.PassPortcullis; import org.usfirst.frc.team3501.robot.commands.auton.PassSallyPort; import org.usfirst.frc.team3501.robot.commands.intakearm.IntakeBall; import org.usfirst.frc.team3501.robot.commands.scaler.ExtendLift; @@ -96,7 +97,7 @@ public class OI { passSallyPort.whenPressed(new PassSallyPort()); lowerChevalDeFrise - .whenPressed(/* TO DO: define this, and fill in commands */); + .whenPressed(/* TO DO: define this, and fill in commands */); if (toggleScalingMode.get()) { if (!isScalingMode) { @@ -127,7 +128,7 @@ public class OI { } SpinRobot180_1 - .whenPressed(/* rotate robot 180, reorient joystick controls */); + .whenPressed(/* rotate robot 180, reorient joystick controls */); } } diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java new file mode 100644 index 00000000..0d48264a --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java @@ -0,0 +1,14 @@ +package org.usfirst.frc.team3501.robot.commands.auton; + +import edu.wpi.first.wpilibj.command.CommandGroup; + +/** + * + */ +public class PassPortcullis extends CommandGroup { + + public PassPortcullis() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } +}