From 3e515b7546e96e26bb285ec36af3df24b3c7654e Mon Sep 17 00:00:00 2001 From: Shivani Ghanta Date: Sat, 21 Jan 2017 13:50:27 -0800 Subject: [PATCH] Delete StopWinch and Climber subsystem, edit javadoc comments --- .../usfirst/frc/team3501/robot/Constants.java | 1 - .../robot/commands/climber/RunWinch.java | 4 +++ .../commands/climber/RunWinchContinuous.java | 11 ++++++- .../team3501/robot/subsystems/Climber.java | 32 ------------------- 4 files changed, 14 insertions(+), 34 deletions(-) delete mode 100644 src/org/usfirst/frc/team3501/robot/subsystems/Climber.java diff --git a/src/org/usfirst/frc/team3501/robot/Constants.java b/src/org/usfirst/frc/team3501/robot/Constants.java index 4978c31..7c9d216 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -14,7 +14,6 @@ public class Constants { public final static int TOGGLE_FLYWHEEL_PORT = 0; public final static int TOGGLE_INDEXWHEEL_PORT = 0; - public final static int TOGGLE_WINCH_PORT = 0; } public static class Shooter { diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java index 88195a4..bed5c8c 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java @@ -61,6 +61,10 @@ public class RunWinch extends Command { @Override protected void end() { Robot.getDriveTrain().stop(); +<<<<<<< 1b45bc927675060d057730fc7c7083fb9d813f66 +======= + +>>>>>>> Delete StopWinch and Climber subsystem, edit javadoc comments } @Override diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java index 959dd37..a713cb2 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java @@ -5,9 +5,14 @@ import org.usfirst.frc.team3501.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** +<<<<<<< 1b45bc927675060d057730fc7c7083fb9d813f66 * This command runs the winch motor continuously at a specified speed until the * button triggering it is released. This command also makes the drive train * motors run because the winch is controlled by the drive train. +======= + * This command will run the winch motor continuously until the button + * triggering it is released. This command also runs the drive train. +>>>>>>> Delete StopWinch and Climber subsystem, edit javadoc comments * * pre-condition: This command must be run by a button in OI. The robot must be * attached to the rope. @@ -34,6 +39,10 @@ public class RunWinchContinuous extends Command { @Override protected void initialize() { Robot.getDriveTrain().setMotorValues(motorVal, motorVal); +<<<<<<< 1b45bc927675060d057730fc7c7083fb9d813f66 +======= + +>>>>>>> Delete StopWinch and Climber subsystem, edit javadoc comments } @Override @@ -43,7 +52,7 @@ public class RunWinchContinuous extends Command { @Override protected boolean isFinished() { - return !Robot.getOI().toggleWinch.get(); + return false; } @Override diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Climber.java b/src/org/usfirst/frc/team3501/robot/subsystems/Climber.java deleted file mode 100644 index 3d49f90..0000000 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Climber.java +++ /dev/null @@ -1,32 +0,0 @@ -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); - - } -} -- 2.30.2