add Motor value in constants
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / Climber.java
diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Climber.java b/src/org/usfirst/frc/team3501/robot/subsystems/Climber.java
new file mode 100644 (file)
index 0000000..3d49f90
--- /dev/null
@@ -0,0 +1,32 @@
+package org.usfirst.frc.team3501.robot.subsystems;
+
+import org.usfirst.frc.team3501.robot.Constants;
+
+import com.ctre.CANTalon;
+
+import edu.wpi.first.wpilibj.command.Subsystem;
+
+public class Climber extends Subsystem {
+  private static Climber climber;
+  private final CANTalon motor;
+
+  private Climber() {
+    motor = new CANTalon(Constants.Climber.MOTOR);
+  }
+
+  public static Climber getClimber() {
+    if (climber == null) {
+      climber = new Climber();
+    }
+    return climber;
+  }
+
+  public void stop() {
+    setMotorValue(0);
+  }
+
+  public void setMotorValue(final double val) {
+    motor.set(MOTOR);
+
+  }
+}