added the commands to buttons
authorTrevor <tr89on@gmail.com>
Tue, 31 Jan 2017 03:30:17 +0000 (19:30 -0800)
committerTrevor <tr89on@gmail.com>
Tue, 31 Jan 2017 03:30:17 +0000 (19:30 -0800)
src/org/usfirst/frc/team3501/robot/OI.java

index 3679b64df8be76c9774d9b6ff243153fd6cead65..680b618d5737353b3a885b53c8686eb8926a6c60 100644 (file)
@@ -3,6 +3,7 @@ package org.usfirst.frc.team3501.robot;
 import org.usfirst.frc.team3501.robot.commandgroups.PrepareToShoot;
 import org.usfirst.frc.team3501.robot.commandgroups.Shoot;
 import org.usfirst.frc.team3501.robot.commands.climber.RunWinchContinuous;
+import org.usfirst.frc.team3501.robot.commands.climber.StopWinch;
 import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear;
 import org.usfirst.frc.team3501.robot.commands.driving.Turn90Left;
 import org.usfirst.frc.team3501.robot.commands.driving.Turn90Right;
@@ -74,7 +75,7 @@ public class OI {
     turn90Left = new JoystickButton(leftJoystick, Constants.OI.LEFT_BUTTON_6);
 
     toggleWinch.whenActive(new RunWinchContinuous(1));
-    // toggleWinch.whenReleased(new KeepWinchInPlace());
+    toggleWinch.whenReleased(new StopWinch());
 
     toggleIndexWheel.whenPressed(new RunIndexWheelContinuous(1));