*
* 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
*
*/
*/
public RunWinch(double time, double motorVal) {
requires(Robot.getDriveTrain());
+ timer = new Timer();
this.time = time;
this.motorVal = motorVal;
}
@Override
protected void end() {
Robot.getDriveTrain().stop();
-
}
@Override