Add button for winch
authorShivani Ghanta <shivani.oghanta@gmail.com>
Tue, 17 Jan 2017 03:17:54 +0000 (19:17 -0800)
committerShivani Ghanta <shivani.oghanta@gmail.com>
Sat, 21 Jan 2017 22:27:37 +0000 (14:27 -0800)
src/org/usfirst/frc/team3501/robot/OI.java

index cf71c721b94429dfd41ea6148fb296d924b05541..f9057302df9396e7a9dbb004e20e49496ae34412 100644 (file)
@@ -6,11 +6,12 @@ public class OI {
   private static OI oi;
   public static Joystick leftJoystick;
   public static Joystick rightJoystick;
-  public static ClimberButton climberButton;
+  public static Button toggleWinch;
 
   public OI() {
     leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
     rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
+    Â toggleWinch = new JoystickButton(leftJoystick,Constants.OI.TOGGLE_WINCH_PORT);
 
   }