Add buttons to OI class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
index e72c0284b52d3f65336496174716c26c02fb18aa..d21fe84cd64c853623c7bae7881825738093c256 100644 (file)
@@ -10,12 +10,20 @@ public class OI {
   public static Joystick rightJoystick;
   public static Button toggleWinch;
 
+  public static Button toggleIndexWheel;
+  public static Button toggleFlyWheel;
+
   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);
 
+    toggleIndexWheel = new JoystickButton(leftJoystick,
+        Constants.OI.TOGGLE_INDEXWHEEL_PORT);
+    toggleFlyWheel = new JoystickButton(leftJoystick,
+        Constants.OI.TOGGLE_FLYWHEEL_PORT);
+
   }
 
   public static OI getOI() {