fix bugs
authorCindy Zhang <cindyzyx9@gmail.com>
Fri, 10 Feb 2017 03:51:44 +0000 (19:51 -0800)
committerEric Sandoval <harpnart@gmail.com>
Sun, 19 Feb 2017 18:44:42 +0000 (10:44 -0800)
src/org/usfirst/frc/team3501/robot/Constants.java
src/org/usfirst/frc/team3501/robot/commands/climber/ToggleWinch.java
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java

index 20282740a75198a70f6551e0cdf421a661eed187..c2fbf7b121dc7e831d783cf066980d32eb0d4f05 100644 (file)
@@ -57,15 +57,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 = 8;
 
-    public final static int HOLD_INTAKE_PORT = 0;
-
   }
 
   public static enum Direction {
index 3e60406cc66e332167c465d59dae56d08311b13f..66c8364b1a37e78bcf993b5d4414e29d172322a7 100644 (file)
@@ -34,7 +34,7 @@ public class ToggleWinch extends Command {
 
   @Override
   protected boolean isFinished() {
-    return false;
+    return Robot.getOI().toggleWinch.get();
   }
 
   @Override
index ad2c2635980a3bc532b5d79196ac848f7a7bb183..566200e6edf23cff6321b150475cc21db41662cf 100644 (file)
@@ -57,7 +57,7 @@ public class DriveTrain extends Subsystem {
 
   private boolean isClimbing;
   private static double CLIMBER_SPEED;;
-  public boolean shouldBeClimbing;
+  public boolean shouldBeClimbing = false;
 
   private DriveTrain() {