add Motor value in constants
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / Climber.java
index 3426dad718b70fce7772c37871d39bbed8647de6..3d49f90be48f17f96ef93f6a4c550030697265a2 100644 (file)
@@ -1,10 +1,17 @@
 package org.usfirst.frc.team3501.robot.subsystems;
 
-public class Climber {
+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() {
@@ -15,10 +22,11 @@ public class Climber {
   }
 
   public void stop() {
-    setMotorValues(0);
+    setMotorValue(0);
   }
 
-  public void setMotorValues(final double val) {
+  public void setMotorValue(final double val) {
+    motor.set(MOTOR);
 
   }
 }