|
7 | 7 |
|
8 | 8 | package org.usfirst.frc.team199.Robot2018; |
9 | 9 |
|
10 | | -import org.usfirst.frc.team199.Robot2018.commands.CloseIntake; |
11 | | -import org.usfirst.frc.team199.Robot2018.commands.IntakeCube; |
12 | | -import org.usfirst.frc.team199.Robot2018.commands.LowerIntake; |
13 | | -import org.usfirst.frc.team199.Robot2018.commands.OpenIntake; |
14 | | -import org.usfirst.frc.team199.Robot2018.commands.OutakeCube; |
15 | 10 | import org.usfirst.frc.team199.Robot2018.commands.PIDMove; |
16 | 11 | import org.usfirst.frc.team199.Robot2018.commands.PIDTurn; |
17 | | -import org.usfirst.frc.team199.Robot2018.commands.RaiseIntake; |
18 | 12 | import org.usfirst.frc.team199.Robot2018.commands.ResetEncoders; |
19 | 13 | import org.usfirst.frc.team199.Robot2018.commands.RunLift; |
20 | 14 | import org.usfirst.frc.team199.Robot2018.commands.SetDistancePerPulse; |
|
32 | 26 | * interface to the commands and command groups that allow control of the robot. |
33 | 27 | */ |
34 | 28 | public class OI { |
| 29 | + /* |
| 30 | + * WHENEVER YOU ADD OR CHANGE WHAT A BUTTON OR JOYSTICK DOES, indicate in |
| 31 | + * /docs/controllers.txt to keep that reference up to date. |
| 32 | + */ |
35 | 33 |
|
36 | 34 | public Joystick leftJoy; |
37 | 35 | private JoystickButton shiftLowGearButton; |
@@ -92,18 +90,22 @@ public OI() { |
92 | 90 | MoveLiftUpButton.whileHeld(new RunLift(Robot.lift, true)); |
93 | 91 | MoveLiftDownButton.whileHeld(new RunLift(Robot.lift, false)); |
94 | 92 |
|
95 | | - manipulator = new Joystick(2); |
96 | | - closeIntake = new JoystickButton(manipulator, getButton("Close Intake Button", 1)); |
97 | | - closeIntake.whenPressed(new CloseIntake()); |
98 | | - openIntake = new JoystickButton(manipulator, getButton("Open Intake Button", 2)); |
99 | | - openIntake.whenPressed(new OpenIntake()); |
100 | | - raiseIntake = new JoystickButton(manipulator, getButton("Raise Intake Button", 3)); |
101 | | - raiseIntake.whenPressed(new RaiseIntake()); |
102 | | - lowerIntake = new JoystickButton(manipulator, getButton("Lower Intake Button", 4)); |
103 | | - lowerIntake.whenPressed(new LowerIntake()); |
104 | | - intake = new JoystickButton(manipulator, getButton("Intake Button", 5)); |
105 | | - intake.whenPressed(new IntakeCube()); |
106 | | - outake = new JoystickButton(manipulator, getButton("Outake Button", 6)); |
107 | | - outake.whenPressed(new OutakeCube()); |
| 93 | + // manipulator = new Joystick(2); |
| 94 | + // closeIntake = new JoystickButton(manipulator, getButton("Close Intake |
| 95 | + // Button", 1)); |
| 96 | + // closeIntake.whenPressed(new CloseIntake()); |
| 97 | + // openIntake = new JoystickButton(manipulator, getButton("Open Intake Button", |
| 98 | + // 2)); |
| 99 | + // openIntake.whenPressed(new OpenIntake()); |
| 100 | + // raiseIntake = new JoystickButton(manipulator, getButton("Raise Intake |
| 101 | + // Button", 3)); |
| 102 | + // raiseIntake.whenPressed(new RaiseIntake()); |
| 103 | + // lowerIntake = new JoystickButton(manipulator, getButton("Lower Intake |
| 104 | + // Button", 4)); |
| 105 | + // lowerIntake.whenPressed(new LowerIntake()); |
| 106 | + // intake = new JoystickButton(manipulator, getButton("Intake Button", 5)); |
| 107 | + // intake.whenPressed(new IntakeCube()); |
| 108 | + // outake = new JoystickButton(manipulator, getButton("Outake Button", 6)); |
| 109 | + // outake.whenPressed(new OutakeCube()); |
108 | 110 | } |
109 | 111 | } |
0 commit comments