format fix two
authorKaitlyn <kaitlyn@10.17.72.18>
Sat, 30 Jan 2016 04:28:20 +0000 (20:28 -0800)
committerKaitlyn <kaitlyn@10.17.72.18>
Sat, 30 Jan 2016 04:28:20 +0000 (20:28 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/Scaler.java

index f16f424bf6e05ad5927476ab311bbf28944078e1..0c2ed0aa999d7734b03c947a68b631386b5a6753 100755 (executable)
@@ -1,4 +1,5 @@
 package org.usfirst.frc.team3501.robot.subsystems;
+
 import org.usfirst.frc.team3501.robot.Constants;
 
 import edu.wpi.first.wpilibj.CANTalon;
@@ -7,41 +8,42 @@ import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
 import edu.wpi.first.wpilibj.command.Subsystem;
 
 public class Scaler extends Subsystem {
-       //Scaler related objects
-       private DoubleSolenoid piston;
-       private CANTalon winch;
-       
-       public Scaler() {
-               piston = new DoubleSolenoid(Constants.Scaler.FORWARD_CHANNEL, Constants.Scaler.REVERSE_CHANNEL);
-               winch = new CANTalon(Constants.Scaler.WINCH_MOTOR);
-       }
-
-       @Override
-       protected void initDefaultCommand() {
-
-       }
-       
-       public Value getSolenoidValue(){
-               return piston.get();
-       }
-       
-       public void liftScissorLift(){
-               piston.set(DoubleSolenoid.Value.kReverse);
-       }
-       
-       public void lowerScissorLift(){
-               piston.set(DoubleSolenoid.Value.kForward);
-       }
-       
-       public void disengageHook(){
-       }
-       
-       public void runWinch(double speed){
-               if( speed > 1)
-                       speed = 1;
-               if(speed < -1)
-                       speed = -1;
-               
-               winch.set(speed);
-       }
+  // Scaler related objects
+  private DoubleSolenoid piston;
+  private CANTalon winch;
+
+  public Scaler() {
+    piston = new DoubleSolenoid(Constants.Scaler.FORWARD_CHANNEL,
+        Constants.Scaler.REVERSE_CHANNEL);
+    winch = new CANTalon(Constants.Scaler.WINCH_MOTOR);
+  }
+
+  @Override
+  protected void initDefaultCommand() {
+
+  }
+
+  public Value getSolenoidValue() {
+    return piston.get();
+  }
+
+  public void liftScissorLift() {
+    piston.set(DoubleSolenoid.Value.kReverse);
+  }
+
+  public void lowerScissorLift() {
+    piston.set(DoubleSolenoid.Value.kForward);
+  }
+
+  public void disengageHook() {
+  }
+
+  public void runWinch(double speed) {
+    if (speed > 1)
+      speed = 1;
+    if (speed < -1)
+      speed = -1;
+
+    winch.set(speed);
+  }
 }