Commit | Line | Data |
---|---|---|
0a716f8d YN |
1 | package org.usfirst.frc.team3501.robot.subsystems;\r |
2 | \r | |
29f5cd04 GK |
3 | import org.usfirst.frc.team3501.robot.Constants;\r |
4 | \r | |
5 | import edu.wpi.first.wpilibj.CANTalon;\r | |
0a716f8d YN |
6 | import edu.wpi.first.wpilibj.command.Subsystem;\r |
7 | \r | |
5585bd31 YN |
8 | public class IntakeArm extends Subsystem {\r |
9 | \r | |
29f5cd04 | 10 | private CANTalon intake;\r |
204c2e36 | 11 | private CANTalon chevalDeFriseHand;\r |
29f5cd04 GK |
12 | \r |
13 | public IntakeArm() {\r | |
14 | intake = new CANTalon(Constants.IntakeArm.PORT);\r | |
15 | \r | |
16 | }\r | |
17 | \r | |
18 | /*\r | |
19 | * Intake only moves once at the beginning of the match. It lowers at the\r | |
20 | * beginning of the match and is held there by mechanical stops until the end\r | |
21 | * of the match.\r | |
22 | * \r | |
23 | * Must be used in a command that has a timer variable to stop it.\r | |
24 | */\r | |
25 | public void dropIntake() {\r | |
26 | intake.set(0.3);\r | |
27 | }\r | |
28 | \r | |
29 | public void intake() {\r | |
30 | intake.set(Constants.IntakeArm.INTAKE_SPEED);\r | |
31 | }\r | |
5585bd31 | 32 | \r |
29f5cd04 GK |
33 | public void output() {\r |
34 | intake.set(Constants.IntakeArm.OUTPUT_SPEED);\r | |
35 | }\r | |
0a716f8d | 36 | \r |
29f5cd04 GK |
37 | @Override\r |
38 | protected void initDefaultCommand() {\r | |
5585bd31 | 39 | \r |
29f5cd04 | 40 | }\r |
0a716f8d | 41 | }\r |