Fix formatting and stuff
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / scaler / ToggleScaling.java
diff --git a/src/org/usfirst/frc/team3501/robot/commands/scaler/ToggleScaling.java b/src/org/usfirst/frc/team3501/robot/commands/scaler/ToggleScaling.java
new file mode 100644 (file)
index 0000000..a3ee9d4
--- /dev/null
@@ -0,0 +1,35 @@
+package org.usfirst.frc.team3501.robot.commands.scaler;
+
+import org.usfirst.frc.team3501.robot.Constants;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class ToggleScaling extends Command {
+  public ToggleScaling() {
+
+  }
+
+  @Override
+  protected void initialize() {
+    Constants.Scaler.SCALING = !Constants.Scaler.SCALING;
+  }
+
+  @Override
+  protected void execute() {
+
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+  }
+
+  @Override
+  protected void interrupted() {
+    end();
+  }
+}