Delete unused methods and correct logic errors
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / Scaler.java
index c6d400778e523692a5d1ff88449510bc7822a825..e56e4a81721df4c9d9ea28b2b3a3f555cb6da534 100755 (executable)
@@ -8,32 +8,25 @@ import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
 import edu.wpi.first.wpilibj.command.Subsystem;
 
 public class Scaler extends Subsystem {
-  private DoubleSolenoid piston;
+  private DoubleSolenoid scaler;
   private CANTalon winch;
 
   public Scaler() {
-    piston = new DoubleSolenoid(Constants.Scaler.FORWARD_CHANNEL,
+    scaler = new DoubleSolenoid(Constants.Scaler.FORWARD_CHANNEL,
         Constants.Scaler.REVERSE_CHANNEL);
     winch = new CANTalon(Constants.Scaler.WINCH_MOTOR);
   }
 
   public Value getSolenoidValue() {
-    return piston.get();
+    return scaler.get();
   }
 
   public void liftScissorLift() {
-    piston.set(DoubleSolenoid.Value.kReverse);
+    scaler.set(DoubleSolenoid.Value.kReverse);
   }
 
   public void lowerScissorLift() {
-    piston.set(DoubleSolenoid.Value.kForward);
-  }
-
-  public void engageHook() {
-
-  }
-
-  public void disengageHook() {
+    scaler.set(DoubleSolenoid.Value.kForward);
   }
 
   public void runWinch(double speed) {
@@ -49,29 +42,6 @@ public class Scaler extends Subsystem {
     runWinch(Constants.Scaler.WINCH_STOP_SPEED);
   }
 
-  /***
-   * This method returns boolean value true or false on whether piston is
-   * extended or not.
-   *
-   * @return returns true if piston is extended, false if otherwise.
-   */
-  public boolean getPistonStatus() {
-    return true;
-  }
-
-  /***
-   * This method sets the piston status for the scissor lift. The piston can
-   * either be extended or not extended.
-   *
-   * @param status
-   *          The status of the piston. 0 for the piston to be extended, 1 for
-   *          the piston to not be extended.
-   */
-
-  public void setPistonStatus(int status) {
-
-  }
-
   @Override
   protected void initDefaultCommand() {