From: Cindy Zhang Date: Fri, 10 Feb 2017 03:51:44 +0000 (-0800) Subject: fix bugs X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=366f1cfd9d6ad65174100145464e01b7e8d984d1 fix bugs --- diff --git a/src/org/usfirst/frc/team3501/robot/Constants.java b/src/org/usfirst/frc/team3501/robot/Constants.java index 3567e2f..671de15 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -58,15 +58,11 @@ public class Constants { public static final int ENCODER_RIGHT_B = 3; public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0; - - public final static int TRIGGER_DRIVE_PORT = 0; } public static class Intake { public static final int INTAKE_ROLLER_PORT = 0; - public final static int HOLD_INTAKE_PORT = 0; - } public static enum Direction { diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/ToggleWinch.java b/src/org/usfirst/frc/team3501/robot/commands/climber/ToggleWinch.java index 3e60406..66c8364 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/ToggleWinch.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/ToggleWinch.java @@ -34,7 +34,7 @@ public class ToggleWinch extends Command { @Override protected boolean isFinished() { - return false; + return Robot.getOI().toggleWinch.get(); } @Override diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index b0113e8..1ffb14d 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -35,7 +35,7 @@ public class DriveTrain extends Subsystem { private ADXRS450_Gyro imu; - public boolean shouldBeClimbing; + public boolean shouldBeClimbing = false; private DriveTrain() { // MOTOR CONTROLLERS