Change to 2 space instead of 4 space per Danny's request
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / subsystems / Claw.java
index 100eff493ce904261e769310bf0e94581f67a6ee..b7a1f048ab4d1e1f50bebbad19ac4b4e8117d2df 100644 (file)
@@ -11,40 +11,40 @@ import edu.wpi.first.wpilibj.command.Subsystem;
 
 public class Claw extends Subsystem {
 
-    private DoubleSolenoid solenoid;
-    public boolean toggleOn = false;
-
-    public Claw() {
-        solenoid = new DoubleSolenoid(RobotMap.MODULE_NUMBER,
-                RobotMap.SOLENOID_FORWARD, RobotMap.SOLENOID_REVERSE);
-    }
-
-    public void initDefaultCommand() {
-    }
-
-    public void closeClaw() {
-        solenoid.set(RobotMap.close);
-    }
-
-    public void openClaw() {
-        solenoid.set(RobotMap.open);
-    }
-
-    public boolean isOpen() {
-        return solenoid.get() == RobotMap.open;
-    }
-
-    public void doTriggerAction() {
-        if (!Robot.claw.toggleOn) {
-            if (OI.rightJoystick.getRawButton(RobotMap.TRIGGER_PORT)) {
-                if (Robot.claw.isOpen()) {
-                    new CloseClaw().start();
-                }
-            } else {
-                if (!Robot.claw.isOpen()) {
-                    new OpenClaw().start();
-                }
-            }
+  private DoubleSolenoid solenoid;
+  public boolean toggleOn = false;
+
+  public Claw() {
+    solenoid = new DoubleSolenoid(RobotMap.MODULE_NUMBER,
+        RobotMap.SOLENOID_FORWARD, RobotMap.SOLENOID_REVERSE);
+  }
+
+  public void initDefaultCommand() {
+  }
+
+  public void closeClaw() {
+    solenoid.set(RobotMap.close);
+  }
+
+  public void openClaw() {
+    solenoid.set(RobotMap.open);
+  }
+
+  public boolean isOpen() {
+    return solenoid.get() == RobotMap.open;
+  }
+
+  public void doTriggerAction() {
+    if (!Robot.claw.toggleOn) {
+      if (OI.rightJoystick.getRawButton(RobotMap.TRIGGER_PORT)) {
+        if (Robot.claw.isOpen()) {
+          new CloseClaw().start();
+        }
+      } else {
+        if (!Robot.claw.isOpen()) {
+          new OpenClaw().start();
         }
+      }
     }
+  }
 }