From: shainachen Date: Sun, 15 Jan 2017 00:30:13 +0000 (-0800) Subject: Add buttons to OI class X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=adfc017150276503ef41671f801b65e642caa9cf Add buttons to OI class --- diff --git a/src/org/usfirst/frc/team3501/robot/Constants.java b/src/org/usfirst/frc/team3501/robot/Constants.java index 6b8e424..af90000 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -19,6 +19,7 @@ public class Constants { // MOTOR CONTROLLERS public static final int FLY_WHEEL = 0; public static final int INDEX_WHEEL = 0; + public final static int TOGGLE_WINCH_PORT = 0; public final static int TOGGLE_FLYWHEEL_PORT = 0; public final static int TOGGLE_INDEXWHEEL_PORT = 0; diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java index 83b66c0..b4eed57 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -55,6 +55,7 @@ public class RunIndexWheelContinuous extends Command { @Override protected boolean isFinished() { return Robot.getOI().toggleIndexWheel.get(); + } }