*
* post-condition: Winch motor set to a specified speed for a specified time.
*
+ * @param motorVal
+ * value range is from -1 to 1
+ * @param time
+ * in seconds
* @author shivanighanta
*
*/
* value range is from -1 to 1
*/
public RunWinch(double time, double motorVal) {
-<<<<<<< a5147d5928f01620d8e10f2e9cdea079526d2db3
requires(Robot.getDriveTrain());
-=======
- requires(Robot.getClimber());
->>>>>>> Implement RunWinch
+ timer = new Timer();
this.time = time;
this.motorVal = motorVal;
}
@Override
protected void initialize() {
timer.start();
-<<<<<<< a5147d5928f01620d8e10f2e9cdea079526d2db3
-=======
- Robot.getClimber().setMotorValues(motorVal, motorVal);
->>>>>>> Implement RunWinch
}
@Override
@Override
protected void end() {
-<<<<<<< a5147d5928f01620d8e10f2e9cdea079526d2db3
Robot.getDriveTrain().stop();
-
-=======
- Robot.getClimber().stop();
->>>>>>> Implement RunWinch
}
@Override