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 GK |
10 | private CANTalon intake;\r |
11 | \r | |
12 | public IntakeArm() {\r | |
13 | intake = new CANTalon(Constants.IntakeArm.PORT);\r | |
14 | \r | |
15 | }\r | |
16 | \r | |
17 | /*\r | |
18 | * Intake only moves once at the beginning of the match. It lowers at the\r | |
19 | * beginning of the match and is held there by mechanical stops until the end\r | |
20 | * of the match.\r | |
21 | * \r | |
22 | * Must be used in a command that has a timer variable to stop it.\r | |
23 | */\r | |
24 | public void dropIntake() {\r | |
25 | intake.set(0.3);\r | |
26 | }\r | |
27 | \r | |
28 | public void intake() {\r | |
29 | intake.set(Constants.IntakeArm.INTAKE_SPEED);\r | |
30 | }\r | |
5585bd31 | 31 | \r |
29f5cd04 GK |
32 | public void output() {\r |
33 | intake.set(Constants.IntakeArm.OUTPUT_SPEED);\r | |
34 | }\r | |
0a716f8d | 35 | \r |
29f5cd04 GK |
36 | @Override\r |
37 | protected void initDefaultCommand() {\r | |
5585bd31 | 38 | \r |
29f5cd04 | 39 | }\r |
0a716f8d | 40 | }\r |