public static class OI {
public final static int LEFT_STICK_PORT = 0;
public final static int RIGHT_STICK_PORT = 1;
- public final static int TOGGLE_WINCH_PORT = 0;
+ public final static int TOGGLE_WINCH_PORT = 0;
}
public static class DriveTrain {
public static final int ENCODER_RIGHT_B = 3;
}
+ public static class Climber {
+ // MOTOR CONTROLLERS
+ public static final int MOTOR_VAL = 1;
+
+ }
+
public static enum Direction {
LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
}
import org.usfirst.frc.team3501.robot.Robot;
-import com.sun.glass.ui.Timer;
-
+import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.command.Command;
/**
private double motorVal;
public RunWinchContinuous(double motorVal) {
+ requires(Robot.getClimber());
this.motorVal = motorVal;
}
public class StopWinch extends Command {
public StopWinch() {
+ requires(Robot.getClimber());
+
}
@Override
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() {
}
public void setMotorValue(final double val) {
+ motor.set(MOTOR);
}
}