}
}
+ public static class IntakeArm {
+ public static final int PORT = 0;
+
+ public static final double INTAKE_SPEED = 0.5;
+ public static final double OUTPUT_SPEED = -0.5;
+ }
+
public static enum Direction {
LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
}
package org.usfirst.frc.team3501.robot.subsystems;\r
\r
+import org.usfirst.frc.team3501.robot.Constants;\r
+\r
+import edu.wpi.first.wpilibj.CANTalon;\r
import edu.wpi.first.wpilibj.command.Subsystem;\r
\r
public class IntakeArm extends Subsystem {\r
\r
- public IntakeArm() {\r
+ private CANTalon intake;\r
+\r
+ public IntakeArm() {\r
+ intake = new CANTalon(Constants.IntakeArm.PORT);\r
+\r
+ }\r
+\r
+ /*\r
+ * Intake only moves once at the beginning of the match. It lowers at the\r
+ * beginning of the match and is held there by mechanical stops until the end\r
+ * of the match.\r
+ * \r
+ * Must be used in a command that has a timer variable to stop it.\r
+ */\r
+ public void dropIntake() {\r
+ intake.set(0.3);\r
+ }\r
+\r
+ public void intake() {\r
+ intake.set(Constants.IntakeArm.INTAKE_SPEED);\r
+ }\r
\r
- }\r
+ public void output() {\r
+ intake.set(Constants.IntakeArm.OUTPUT_SPEED);\r
+ }\r
\r
- @Override\r
- protected void initDefaultCommand() {\r
+ @Override\r
+ protected void initDefaultCommand() {\r
\r
- }\r
+ }\r
}\r