get rid of lidar variables and code that conflicted with lidar variables already...
authorMeryem Esa <meresa14@gmail.com>
Thu, 11 Feb 2016 03:34:35 +0000 (19:34 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Tue, 16 Feb 2016 19:37:02 +0000 (11:37 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java

index 98131673509e3089bb5bf861062225cfe807423d..40a227ce1cb205bd192d4e4731e546e2cda17bfa 100755 (executable)
@@ -2,6 +2,7 @@ package org.usfirst.frc.team3501.robot.subsystems;
 
 import org.usfirst.frc.team3501.robot.Constants;
 
+import edu.wpi.first.wpilibj.AnalogPotentiometer;
 import edu.wpi.first.wpilibj.CANTalon;
 import edu.wpi.first.wpilibj.CounterBase.EncodingType;
 import edu.wpi.first.wpilibj.DoubleSolenoid;
@@ -9,11 +10,10 @@ import edu.wpi.first.wpilibj.Encoder;
 import edu.wpi.first.wpilibj.command.Subsystem;
 
 /***
- * The Shooter consists of a platform and wheel, each controlled by
- * separate motors. The piston controlling the platform pushes the ball onto the
- * wheel. The wheel is controlled by a motor, which is running before the ball
- * is pushed
- * onto the wheel. The spinning wheel propels the ball.
+ * The Shooter consists of a platform and wheel, each controlled by separate
+ * motors. The piston controlling the platform pushes the ball onto the wheel.
+ * The wheel is controlled by a motor, which is running before the ball is
+ * pushed onto the wheel. The spinning wheel propels the ball.
  *
  * @author superuser
  *
@@ -26,6 +26,8 @@ public class Shooter extends Subsystem {
   private Lidar lidar;
 
   public Shooter() {
+    leftLidar = new AnalogPotentiometer(0);
+    rightLidar = new AnalogPotentiometer(0);
     shooter = new CANTalon(Constants.Shooter.PORT);
     hood = new DoubleSolenoid(Constants.Shooter.HOOD_FORWARD,
         Constants.Shooter.HOOD_REVERSE);
@@ -83,8 +85,8 @@ public class Shooter extends Subsystem {
     punch.set(Constants.Shooter.retract);
   }
 
-  public boolean isHoodOpen() {
-    return hood.get() == Constants.Shooter.open;
+  @Override
+  protected void initDefaultCommand() {
   }
 
   public void openHood() {