2323import org .usfirst .frc .team199 .Robot2018 .commands .ShiftHighGear ;
2424import org .usfirst .frc .team199 .Robot2018 .commands .ShiftLowGear ;
2525import org .usfirst .frc .team199 .Robot2018 .commands .StopIntake ;
26- import org .usfirst .frc .team199 .Robot2018 .commands .ToggleLeftIntake ;
27- import org .usfirst .frc .team199 .Robot2018 .commands .ToggleRightIntake ;
2826import org .usfirst .frc .team199 .Robot2018 .commands .UpdatePIDConstants ;
2927import org .usfirst .frc .team199 .Robot2018 .subsystems .LiftInterface .LiftHeight ;
3028
@@ -125,9 +123,6 @@ public OI(Robot robot) {
125123 moveLiftDownButton = new JoystickButton (rightJoy , getButton ("Run Lift Motor Down" , 11 ));
126124 moveLiftDownButton .whileHeld (new MoveLift (Robot .lift , false ));
127125
128- stopIntakeButton = new JoystickButton (rightJoy , getButton ("Stop Intake Button" , 6 ));
129- stopIntakeButton .whenPressed (new StopIntake ());
130-
131126 manipulator = new Joystick (2 );
132127 if (manipulator .getButtonCount () == 0 ) {
133128 System .err .println (
@@ -137,20 +132,21 @@ public OI(Robot robot) {
137132 closeIntakeButton .whenPressed (new CloseIntake ());
138133 openIntakeButton = new JoystickButton (manipulator , getButton ("Open Intake Button" , 2 ));
139134 openIntakeButton .whenPressed (new OpenIntake ());
140- // raiseIntake = new JoystickButton(manipulator, getButton("Raise Intake
141- // Button", 3));
142- // raiseIntake.whenPressed(new RaiseIntake());
143- // lowerIntake = new JoystickButton(manipulator, getButton("Lower Intake
144- // Button", 4));
145- // lowerIntake.whenPressed(new LowerIntake());
135+
146136 intakeCubeButton = new JoystickButton (manipulator , getButton ("Intake Button" , 5 ));
147137 intakeCubeButton .whenPressed (new IntakeCube ());
148138 outakeCubeButton = new JoystickButton (manipulator , getButton ("Outake Button" , 6 ));
149139 outakeCubeButton .whenPressed (new OuttakeCube ());
150- toggleLeftIntakeButton = new JoystickButton (manipulator , getButton ("Toggle Left Intake Button" , 3 ));
151- toggleLeftIntakeButton .whenPressed (new ToggleLeftIntake ());
152- toggleRightIntakeButton = new JoystickButton (manipulator , getButton ("Toggle Right Intake Button" , 4 ));
153- toggleRightIntakeButton .whenPressed (new ToggleRightIntake ());
140+
141+ stopIntakeButton = new JoystickButton (manipulator , getButton ("Stop Intake Button" , 3 ));
142+ stopIntakeButton .whenPressed (new StopIntake ());
143+
144+ // toggleLeftIntakeButton = new JoystickButton(manipulator, getButton("Toggle
145+ // Left Intake Button", 3));
146+ // toggleLeftIntakeButton.whenPressed(new ToggleLeftIntake());
147+ // toggleRightIntakeButton = new JoystickButton(manipulator, getButton("Toggle
148+ // Right Intake Button", 4));
149+ // toggleRightIntakeButton.whenPressed(new ToggleRightIntake());
154150 }
155151
156152 }
0 commit comments